Update app.py
Browse files
app.py
CHANGED
@@ -25,7 +25,7 @@ iface = gr.Interface(
|
|
25 |
],
|
26 |
outputs=gr.Textbox(label="Translated Text"),
|
27 |
title="iVoice Translate"
|
28 |
-
)
|
29 |
|
30 |
if __name__ == "__main__":
|
31 |
iface.launch(server_name="0.0.0.0", server_port=int(os.environ.get("PORT", 7860)))
|
|
|
25 |
],
|
26 |
outputs=gr.Textbox(label="Translated Text"),
|
27 |
title="iVoice Translate"
|
28 |
+
).queue() # <— this turns on the /run/predict REST API
|
29 |
|
30 |
if __name__ == "__main__":
|
31 |
iface.launch(server_name="0.0.0.0", server_port=int(os.environ.get("PORT", 7860)))
|