Spaces:
Sleeping
Sleeping
Commit ·
4371f77
1
Parent(s): b84b2ce
fix: improve server/app.py main() function
Browse files- server/app.py +5 -0
server/app.py
CHANGED
|
@@ -1,4 +1,9 @@
|
|
| 1 |
import uvicorn
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
from app import app
|
| 3 |
|
| 4 |
def main():
|
|
|
|
| 1 |
import uvicorn
|
| 2 |
+
import sys
|
| 3 |
+
import os
|
| 4 |
+
|
| 5 |
+
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
| 6 |
+
|
| 7 |
from app import app
|
| 8 |
|
| 9 |
def main():
|