nagasurendra commited on
Commit
6787cc2
·
verified ·
1 Parent(s): 378abc7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
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
- app.run()
 
 
 
 
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
+