Vitomir Jovanović commited on
Commit
0f5e8d0
1 Parent(s): 9c863da

Change for server deploymnet

Browse files
Files changed (1) hide show
  1. main.py +5 -2
main.py CHANGED
@@ -54,5 +54,8 @@ async def all_vectors(query: Query):
54
  return SearchResponse(results=response)
55
 
56
  if __name__ == "__main__":
57
- localhost = socket.gethostbyname("localhost")
58
- uvicorn.run(app, host=localhost, port=8000)
 
 
 
 
54
  return SearchResponse(results=response)
55
 
56
  if __name__ == "__main__":
57
+ # Server Config
58
+ Search_SERVER_HOST_IP = socket.gethostbyname(socket.gethostname())
59
+ # Search_SERVER_HOST_IP = socket.gethostbyname("localhost") # for local deployment
60
+ Search_SERVER_PORT = int(8084)
61
+ uvicorn.run(app, host=Search_SERVER_HOST_IP, port=Search_SERVER_PORT)