Update app.py
Browse files
app.py
CHANGED
|
@@ -23,4 +23,9 @@ with gr.Blocks() as demo:
|
|
| 23 |
translate_btn.click(fn=translate, inputs=english, outputs=german)
|
| 24 |
|
| 25 |
# Adding examples at the bottom
|
| 26 |
-
gr.Examples(["Hello, how are you?", "I am learning Gradio."], inputs=english)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 23 |
translate_btn.click(fn=translate, inputs=english, outputs=german)
|
| 24 |
|
| 25 |
# Adding examples at the bottom
|
| 26 |
+
gr.Examples(["Hello, how are you?", "I am learning Gradio."], inputs=english)
|
| 27 |
+
|
| 28 |
+
|
| 29 |
+
# 4. Launch on the specific port Hugging Face requires
|
| 30 |
+
if __name__ == "__main__":
|
| 31 |
+
demo.launch(server_name="0.0.0.0", server_port=7860)
|