Lakshy-R commited on
Commit
cace8ed
·
1 Parent(s): 0cb06c8
Files changed (2) hide show
  1. app.py +2 -8
  2. requirements.txt +2 -2
app.py CHANGED
@@ -891,11 +891,5 @@ def clear_search(n_clicks):
891
  return dash.no_update
892
 
893
 
894
- if __name__ == "__main__":
895
- # Use the PORT environment variable (set by Hugging Face Spaces) or default to 7860
896
- import os
897
- port = int(os.environ.get("PORT", 7860))
898
- # Run Dash's built-in server for local/debug runs. In production (Spaces) we'll
899
- # use a Docker container and a WSGI server (gunicorn) which should point to
900
- # the Flask `server` object defined above (`server = app.server`).
901
- app.run_server(host="0.0.0.0", port=port, debug=False)
 
891
  return dash.no_update
892
 
893
 
894
+ if __name__ == '__main__':
895
+ app.run(debug=False, port=8050)
 
 
 
 
 
 
requirements.txt CHANGED
@@ -1,5 +1,5 @@
1
  dash
2
  plotly
3
  pandas
4
- pyarrow
5
- pywebio
 
1
  dash
2
  plotly
3
  pandas
4
+ gunicorn
5
+ pyarrow