Bhanumani12 commited on
Commit
08b699f
·
verified ·
1 Parent(s): c30c8ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -164,8 +164,8 @@ def launch_gradio():
164
  nlp_button = gr.Button("Ask")
165
  nlp_button.click(process_nlp_query, inputs=query_input, outputs=response_output)
166
 
167
- # Launch Gradio on port 7861
168
- demo.launch(server_port=7861)
169
 
170
  # ---------- Start Flask and Gradio ----------
171
  if __name__ == "__main__":
 
164
  nlp_button = gr.Button("Ask")
165
  nlp_button.click(process_nlp_query, inputs=query_input, outputs=response_output)
166
 
167
+ # 🚫 Disable SSR mode to avoid Node.js dependency
168
+ demo.launch(server_port=7861, ssr_mode=False)
169
 
170
  # ---------- Start Flask and Gradio ----------
171
  if __name__ == "__main__":