Spaces:
Running
Running
Vitomir Jovanović
commited on
Commit
•
b8cf1e3
1
Parent(s):
a931563
Changing fastapi url for Hugging Face deployment
Browse files
main.py
CHANGED
@@ -56,7 +56,7 @@ async def all_vectors(query: Query):
|
|
56 |
|
57 |
if __name__ == "__main__":
|
58 |
# Server Config
|
59 |
-
|
60 |
-
SERVER_HOST_IP = socket.gethostbyname("localhost") # for local deployment
|
61 |
SERVER_PORT = int(8084)
|
62 |
-
uvicorn.run(app, host=
|
|
|
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)
|