Spaces:
Sleeping
Sleeping
Update gemini_fastapi_server.py
Browse files- gemini_fastapi_server.py +1 -1
gemini_fastapi_server.py
CHANGED
@@ -49,7 +49,7 @@ async def qna_endpoint(question: str, use_gemini: bool = False):
|
|
49 |
# Run the application
|
50 |
if __name__ == "__main__":
|
51 |
try:
|
52 |
-
uvicorn.run(app, host="
|
53 |
except KeyboardInterrupt:
|
54 |
print("Server stopped manually.")
|
55 |
except Exception as e:
|
|
|
49 |
# Run the application
|
50 |
if __name__ == "__main__":
|
51 |
try:
|
52 |
+
uvicorn.run(app, host="0.0.0.0", port=8000) # Changed to IPv4
|
53 |
except KeyboardInterrupt:
|
54 |
print("Server stopped manually.")
|
55 |
except Exception as e:
|