File size: 343 Bytes
94ed1c9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | import os
import sys
import uvicorn
# Add the parent directory to sys.path so 'inference.py' can be imported and env modules
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from inference import app
def main():
uvicorn.run("server.app:app", host="0.0.0.0", port=7860)
if __name__ == "__main__":
main()
|