CanHuggie commited on
Commit
c75339d
·
verified ·
1 Parent(s): 9954f50

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -34,7 +34,7 @@ model_url = os.getenv('MODEL_URL', 'http://localhost:8000/v1')
34
  model_name = os.getenv('MODEL_NAME', 'default-model-name') # Make sure to set this in the environment
35
  temperature = float(os.getenv('TEMPERATURE', 0.8))
36
  stop_token_ids = os.getenv('STOP_TOKEN_IDS', '')
37
- host = os.getenv('HOST', '0.0.0.0')
38
  port_str = os.getenv('PORT', '8001')
39
  try:
40
  port = int(port_str)
@@ -98,4 +98,4 @@ with gr.Blocks(title="MethodAI 0.15", theme="Soft") as demo:
98
  gr.ChatInterface(predict).queue()
99
  # with demo:
100
  # btn.upload(render_file, inputs=[btn], outputs=[show_img])
101
- demo.launch(server_name=host, server_port=8001)
 
34
  model_name = os.getenv('MODEL_NAME', 'default-model-name') # Make sure to set this in the environment
35
  temperature = float(os.getenv('TEMPERATURE', 0.8))
36
  stop_token_ids = os.getenv('STOP_TOKEN_IDS', '')
37
+ host = '0.0.0.0'
38
  port_str = os.getenv('PORT', '8001')
39
  try:
40
  port = int(port_str)
 
98
  gr.ChatInterface(predict).queue()
99
  # with demo:
100
  # btn.upload(render_file, inputs=[btn], outputs=[show_img])
101
+ demo.launch(server_name=host, server_port=port)