LalitMahale
commited on
Commit
·
1557dff
1
Parent(s):
6acd7d3
'
- Dockerfile +1 -1
- app.py +0 -1
Dockerfile
CHANGED
@@ -20,4 +20,4 @@ RUN mkdir -p /tmp/huggingface_cache && chmod -R 777 /tmp/huggingface_cache
|
|
20 |
EXPOSE 7860
|
21 |
|
22 |
# Command to run the FastAPI app with uvicorn (make sure your app is in main.py)
|
23 |
-
CMD ["uvicorn", "app:app", "--reload", "--host=0.0.0.0", "--port=7860"]
|
|
|
20 |
EXPOSE 7860
|
21 |
|
22 |
# Command to run the FastAPI app with uvicorn (make sure your app is in main.py)
|
23 |
+
CMD ["uvicorn", "app:app", "--reload", "--host=0.0.0.0", "--port=7860", "--log-level", "error"]
|
app.py
CHANGED
@@ -20,7 +20,6 @@ async def home():
|
|
20 |
|
21 |
# Token verification function
|
22 |
def verify_token(token: str):
|
23 |
-
print(os.getenv("TOKEN"))
|
24 |
if token != os.getenv("TOKEN"):
|
25 |
raise HTTPException(status_code=401, detail="Token not matched")
|
26 |
|
|
|
20 |
|
21 |
# Token verification function
|
22 |
def verify_token(token: str):
|
|
|
23 |
if token != os.getenv("TOKEN"):
|
24 |
raise HTTPException(status_code=401, detail="Token not matched")
|
25 |
|