eloukas commited on
Commit
350edf7
·
verified ·
1 Parent(s): 34695e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -2760,6 +2760,12 @@ def open_conversation_from_root_cause_table(n_clicks_list, file_contents):
2760
 
2761
  return {"display": "flex"}, conversation_text, subheader_content
2762
 
 
 
2763
 
2764
- if __name__ == "__main__":
2765
- app.run(debug=False)
 
 
 
 
 
2760
 
2761
  return {"display": "flex"}, conversation_text, subheader_content
2762
 
2763
+ # IMPORTANT: Expose the server for Gunicorn, needed for HF Spaces
2764
+ server = app.server
2765
 
2766
+ # if __name__ == "__main__":
2767
+ # app.run(debug=False)
2768
+
2769
+ # IMPORTANT: Expose the server for Gunicorn, needed for HF Spaces
2770
+ if __name__ == '__main__':
2771
+ app.run_server(debug=True)