Spaces:
Sleeping
Sleeping
Update model and temperature
Browse files- .gitignore +2 -0
- app.py +1 -1
- model.py +2 -2
.gitignore
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
__pycache__
|
| 2 |
+
model
|
app.py
CHANGED
|
@@ -66,7 +66,7 @@ with gr.Blocks(
|
|
| 66 |
)
|
| 67 |
|
| 68 |
with gr.Accordion("Advanced Options", open=False):
|
| 69 |
-
temp = gr.Slider(0.00, 1.0, step=.05, label="Temperature", value=0.
|
| 70 |
|
| 71 |
translate_btn = gr.Button("Translate ✨")
|
| 72 |
|
|
|
|
| 66 |
)
|
| 67 |
|
| 68 |
with gr.Accordion("Advanced Options", open=False):
|
| 69 |
+
temp = gr.Slider(0.00, 1.0, step=.05, label="Temperature", value=0.2)
|
| 70 |
|
| 71 |
translate_btn = gr.Button("Translate ✨")
|
| 72 |
|
model.py
CHANGED
|
@@ -3,10 +3,10 @@ from huggingface_hub import hf_hub_download
|
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
-
# tencent/HY-MT1.5-1.8B-GGUF, HY-MT1.5-1.8B-Q6_K.gguf
|
| 7 |
# mradermacher/HY-MT1.5-1.8B-GGUF, HY-MT1.5-1.8B.Q5_K_S.gguf
|
| 8 |
repo_id = "tencent/HY-MT1.5-1.8B-GGUF"
|
| 9 |
-
filename = "HY-MT1.5-1.8B-
|
| 10 |
local_dir = "./model"
|
| 11 |
model_path = hf_hub_download(repo_id=repo_id, filename=filename, local_dir=local_dir)
|
| 12 |
|
|
|
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
+
# tencent/HY-MT1.5-1.8B-GGUF, HY-MT1.5-1.8B-Q6_K.gguf, HY-MT1.5-1.8B-Q4_K_M.gguf
|
| 7 |
# mradermacher/HY-MT1.5-1.8B-GGUF, HY-MT1.5-1.8B.Q5_K_S.gguf
|
| 8 |
repo_id = "tencent/HY-MT1.5-1.8B-GGUF"
|
| 9 |
+
filename = "HY-MT1.5-1.8B-Q4_K_M.gguf"
|
| 10 |
local_dir = "./model"
|
| 11 |
model_path = hf_hub_download(repo_id=repo_id, filename=filename, local_dir=local_dir)
|
| 12 |
|