Spaces:
Sleeping
Sleeping
File size: 421 Bytes
f9ceb68 f62e7e6 f9ceb68 895212c f9ceb68 0973cbc 895212c | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | import sys
import os
# Ensure the root and backend directories are in the path
root = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(root)
sys.path.append(os.path.join(root, "backend"))
from backend.app import app
def main():
import uvicorn
uvicorn.run(app, host="0.0.0.0", port=7860)
# This entry point satisfies OpenEnv and uv requirements
if __name__ == "__main__":
main()
|