Spaces:
Running
Running
Vitomir Jovanović
commited on
Commit
•
0f5e8d0
1
Parent(s):
9c863da
Change for server deploymnet
Browse files
main.py
CHANGED
@@ -54,5 +54,8 @@ async def all_vectors(query: Query):
|
|
54 |
return SearchResponse(results=response)
|
55 |
|
56 |
if __name__ == "__main__":
|
57 |
-
|
58 |
-
|
|
|
|
|
|
|
|
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)
|