Spaces:
Sleeping
Sleeping
Commit ·
be0f011
1
Parent(s): 70c30c6
Changed the do_sample parameter
Browse files
app.py
CHANGED
|
@@ -14,7 +14,7 @@ def transliterate(text: str) -> str:
|
|
| 14 |
return ""
|
| 15 |
|
| 16 |
input_text = f"Cyrillic2Latin: {text.strip()}"
|
| 17 |
-
output = model(input_text, max_length = 128)[0]["generated_text"]
|
| 18 |
|
| 19 |
return output.strip()
|
| 20 |
|
|
|
|
| 14 |
return ""
|
| 15 |
|
| 16 |
input_text = f"Cyrillic2Latin: {text.strip()}"
|
| 17 |
+
output = model(input_text, max_length = 128, do_sample = False)[0]["generated_text"]
|
| 18 |
|
| 19 |
return output.strip()
|
| 20 |
|