Vitomir Jovanović commited on
Commit
b8cf1e3
1 Parent(s): a931563

Changing fastapi url for Hugging Face deployment

Browse files
Files changed (1) hide show
  1. main.py +3 -3
main.py CHANGED
@@ -56,7 +56,7 @@ async def all_vectors(query: Query):
56
 
57
  if __name__ == "__main__":
58
  # Server Config
59
- # Search_SERVER_HOST_IP = socket.gethostbyname(socket.gethostname())
60
- SERVER_HOST_IP = socket.gethostbyname("localhost") # for local deployment
61
  SERVER_PORT = int(8084)
62
- uvicorn.run(app, host="0.0.0.0", port=SERVER_PORT)
 
56
 
57
  if __name__ == "__main__":
58
  # Server Config
59
+ SERVER_HOST_IP = socket.gethostbyname(socket.gethostname())
60
+ # SERVER_HOST_IP = socket.gethostbyname("localhost") # for local deployment
61
  SERVER_PORT = int(8084)
62
+ uvicorn.run(app, host=SERVER_HOST_IP, port=SERVER_PORT)