Spaces:
Runtime error
Runtime error
Commit
Β·
7ef44a1
1
Parent(s):
83f43dd
bug fix
Browse files
.dockerignore β app/.dockerignore
RENAMED
|
File without changes
|
.gitattributes β app/.gitattributes
RENAMED
|
File without changes
|
.gitignore β app/.gitignore
RENAMED
|
File without changes
|
Dockerfile β app/Dockerfile
RENAMED
|
@@ -29,4 +29,4 @@ COPY . .
|
|
| 29 |
EXPOSE 7860
|
| 30 |
|
| 31 |
# Run the FastAPI application
|
| 32 |
-
CMD ["uvicorn", "
|
|
|
|
| 29 |
EXPOSE 7860
|
| 30 |
|
| 31 |
# Run the FastAPI application
|
| 32 |
+
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|
README.md β app/README.md
RENAMED
|
File without changes
|
app/main.py
CHANGED
|
@@ -43,7 +43,8 @@ def home():
|
|
| 43 |
|
| 44 |
app.include_router(transcriber_router, tags=["transcribe"])
|
| 45 |
app.include_router(pronunciation_evaluation_router, tags=["pronunciation_evaluation"])
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
|
|
|
|
|
| 43 |
|
| 44 |
app.include_router(transcriber_router, tags=["transcribe"])
|
| 45 |
app.include_router(pronunciation_evaluation_router, tags=["pronunciation_evaluation"])
|
| 46 |
+
|
| 47 |
+
# if __name__ == '__main__':
|
| 48 |
+
# port = os.environ.get("PORT", 10000) # Default to 10000 if PORT is not set
|
| 49 |
+
# logging.info(f"Starting server on PORT {port}")
|
| 50 |
+
# uvicorn.run("main:app", host="0.0.0.0", port=int(port), log_level="info")
|
requirements.txt β app/requirements.txt
RENAMED
|
File without changes
|