woletee
commited on
Commit
·
398a491
1
Parent(s):
6b3c689
this is the update with adding the port number so that the application can be displayed on the hugging face
Browse files
app.py
CHANGED
@@ -43,6 +43,11 @@ def index():
|
|
43 |
}
|
44 |
|
45 |
return render_template('index.html', tasks=task_names, result=result, render_grid=render_grid)
|
|
|
|
|
|
|
46 |
|
47 |
if __name__ == '__main__':
|
48 |
-
|
|
|
|
|
|
43 |
}
|
44 |
|
45 |
return render_template('index.html', tasks=task_names, result=result, render_grid=render_grid)
|
46 |
+
import os
|
47 |
+
port = int(os.environ.get("PORT", 7860))
|
48 |
+
app.run(host='0.0.0.0', port=port)
|
49 |
|
50 |
if __name__ == '__main__':
|
51 |
+
import os
|
52 |
+
port = int(os.environ.get("PORT", 7860))
|
53 |
+
app.run(host='0.0.0.0', port=port)
|