kcmandable09 commited on
Commit
fb2dfae
·
1 Parent(s): 5f9eebe

fix: use app.run_server for Hugging Face

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -261,4 +261,5 @@ def update_output(contents, filenames):
261
  # ------------------- Run -------------------
262
  if __name__ == '__main__':
263
  port = int(os.environ.get("PORT", 8050))
264
- app.run(host='0.0.0.0', port=port)
 
 
261
  # ------------------- Run -------------------
262
  if __name__ == '__main__':
263
  port = int(os.environ.get("PORT", 8050))
264
+ # Use an official lightweight Python image
265
+ app.run_server(host='0.0.0.0', port=port)