Guhanselvam commited on
Commit
5da0a87
·
verified ·
1 Parent(s): 45ad282

Update gemini_fastapi_server.py

Browse files
Files changed (1) hide show
  1. 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="127.0.0.1", port=8000) # Changed to IPv4
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: