tharunchndrn commited on
Commit
0be2a92
·
verified ·
1 Parent(s): f5f65f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -127,4 +127,12 @@ with gr.Blocks(title="SysLink Food System Assistant") as demo:
127
  b.click(suggestion_click, inputs=[b, chat_ui, state], outputs=[user_in, chat_ui, state, s1, s2, s3, s4, s5, s6])
128
 
129
  # ✅ Expose ONE "app" object for Spaces
130
- app = gr.mount_gradio_app(api, demo, path="/")
 
 
 
 
 
 
 
 
 
127
  b.click(suggestion_click, inputs=[b, chat_ui, state], outputs=[user_in, chat_ui, state, s1, s2, s3, s4, s5, s6])
128
 
129
  # ✅ Expose ONE "app" object for Spaces
130
+ app = gr.mount_gradio_app(api, demo, path="/")
131
+
132
+ if __name__ == "__main__":
133
+ demo.queue()
134
+ demo.launch(
135
+ server_name="0.0.0.0",
136
+ server_port=int(os.environ.get("PORT", 7860)),
137
+ show_error=True,
138
+ )