From 939c6707e8458cf2b62db3b56da137afa90b9d9f Mon Sep 17 00:00:00 2001 From: Stefano Date: Sun, 4 May 2025 01:31:43 -0500 Subject: [PATCH] Fixed path issues for HF deployments --- run.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/run.py b/run.py index 3fa094c..690d9ee 100644 --- a/run.py +++ b/run.py @@ -1,3 +1,9 @@ +import os +import sys + +# Add the src directory to Python path +sys.path.insert(0, os.path.join(os.path.dirname(__file__), "src")) + from fastapi import FastAPI from src.stream_link_server import app as streamlink_server_app @@ -12,4 +18,4 @@ for route in streamlink_server_app.routes: # Run the main app if __name__ == "__main__": import uvicorn - uvicorn.run(main_app, host="0.0.0.0", port=8080) + uvicorn.run(main_app, host="0.0.0.0", port=8080) \ No newline at end of file