Utiric commited on
Commit
17d94c7
·
1 Parent(s): dbbc30c

port and host update

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -91,4 +91,5 @@ def predict():
91
 
92
  # Sunucuyu çalıştır (HuggingFace Spaces'de bu satır otomatik işlenir)
93
  if __name__ == '__main__':
94
- app.run(debug=True)
 
 
91
 
92
  # Sunucuyu çalıştır (HuggingFace Spaces'de bu satır otomatik işlenir)
93
  if __name__ == '__main__':
94
+ port = int(os.getenv('PORT', 7860))
95
+ app.run(host='0.0.0.0', port=port, debug=True)