Update app_enhanced.py
Browse files- app_enhanced.py +1 -1
app_enhanced.py
CHANGED
|
@@ -927,7 +927,7 @@ def frame_file(filename):
|
|
| 927 |
if __name__ == '__main__':
|
| 928 |
# --- CHANGE: Use the port assigned by Hugging Face Spaces or default to 5000 ---
|
| 929 |
# This makes the app compatible with HF Spaces and also allows local execution.
|
| 930 |
-
port = int(os.getenv("PORT",
|
| 931 |
|
| 932 |
print("🚀 Starting Enhanced Comic Generator...")
|
| 933 |
print(f"🌐 Web interface starting on host 0.0.0.0, port {port}")
|
|
|
|
| 927 |
if __name__ == '__main__':
|
| 928 |
# --- CHANGE: Use the port assigned by Hugging Face Spaces or default to 5000 ---
|
| 929 |
# This makes the app compatible with HF Spaces and also allows local execution.
|
| 930 |
+
port = int(os.getenv("PORT", 7860))
|
| 931 |
|
| 932 |
print("🚀 Starting Enhanced Comic Generator...")
|
| 933 |
print(f"🌐 Web interface starting on host 0.0.0.0, port {port}")
|