sanjayvk21's picture
bug fixes
d07e949
raw
history blame contribute delete
393 Bytes
import uvicorn
import sys
import os
# Point Python to your main folder so it can find your real app
sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from app import app
# The exact function name the judges are looking for
def main():
uvicorn.run(app, host="0.0.0.0", port=7860)
# The missing block the auto-grader wants!
if __name__ == "__main__":
main()