Spaces:
Sleeping
Sleeping
fix: return generated text of json if none
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def respond(english_text):
|
|
| 18 |
except KeyError:
|
| 19 |
output = response
|
| 20 |
|
| 21 |
-
return
|
| 22 |
|
| 23 |
app = gr.Interface(fn=respond, inputs="text", outputs="text", title="Terjman-Nano π¨βπ» π", description="Translate English text to Moroccan Darija using our smallest model (77M) π€")
|
| 24 |
|
|
|
|
| 18 |
except KeyError:
|
| 19 |
output = response
|
| 20 |
|
| 21 |
+
return output
|
| 22 |
|
| 23 |
app = gr.Interface(fn=respond, inputs="text", outputs="text", title="Terjman-Nano π¨βπ» π", description="Translate English text to Moroccan Darija using our smallest model (77M) π€")
|
| 24 |
|