Spaces:
Sleeping
Sleeping
| 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() |