baxin commited on
Commit
ea20b3e
·
verified ·
1 Parent(s): d31cb74

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
main.py CHANGED
@@ -78,4 +78,4 @@ with gr.Blocks() as app:
78
  textbox.submit(send_message, [textbox, chatbot], [chatbot]) # Enterでも送信
79
 
80
  if __name__ == "__main__":
81
- app.launch(server_name="0.0.0.0", server_port=7860)
 
78
  textbox.submit(send_message, [textbox, chatbot], [chatbot]) # Enterでも送信
79
 
80
  if __name__ == "__main__":
81
+ app.launch(server_name="0.0.0.0", server_port=int(os.getenv("PORT", "7860")))