ayaaa123 commited on
Commit
7cd13c0
·
verified ·
1 Parent(s): ea66f8a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
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)