Daniel00611 commited on
Commit
a17773a
·
verified ·
1 Parent(s): bebd003

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -74,5 +74,6 @@ def chat():
74
  except Exception as e:
75
  return jsonify({"error": str(e)}), 500
76
 
77
- if __name__ == '__main__':
78
- app.run(host="0.0.0.0", port=7860)
 
 
74
  except Exception as e:
75
  return jsonify({"error": str(e)}), 500
76
 
77
+ if __name__ == "__main__":
78
+ from waitress import serve # Usa un servidor WSGI ligero
79
+ serve(app, host="0.0.0.0", port=7860)