Spaces:
Configuration error
Configuration error
ychanakya12 commited on
Commit ·
e3d7600
1
Parent(s): ac9dd65
Added app.py for Hugging Face Spaces compatibility
Browse files
app.py
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from src.server import app
|
| 2 |
+
|
| 3 |
+
def main():
|
| 4 |
+
import uvicorn
|
| 5 |
+
import os
|
| 6 |
+
port = int(os.environ.get("PORT", 7860))
|
| 7 |
+
host = os.environ.get("HOST", "0.0.0.0")
|
| 8 |
+
uvicorn.run(app, host=host, port=port)
|
| 9 |
+
|
| 10 |
+
if __name__ == '__main__':
|
| 11 |
+
main()
|