meta_env / server /app.py
arrow072's picture
Upload 19 files
94ed1c9 verified
raw
history blame contribute delete
343 Bytes
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()