Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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 |
-
|
|
|
|
|
|
|
|
|
|
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)
|