Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,4 +9,7 @@ def home():
|
|
| 9 |
return f"<h1>Welcome, {name}!</h1><p>Your email: {email}</p>"
|
| 10 |
|
| 11 |
if __name__ == "__main__":
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
| 9 |
return f"<h1>Welcome, {name}!</h1><p>Your email: {email}</p>"
|
| 10 |
|
| 11 |
if __name__ == "__main__":
|
| 12 |
+
import os
|
| 13 |
+
port = int(os.environ.get("PORT", 7860)) # Use the default Hugging Face port
|
| 14 |
+
app.run(host="0.0.0.0", port=port)
|
| 15 |
+
|