port and host update
Browse files
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 |
-
|
|
|
|
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)
|