Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ parser.add_argument(
|
|
| 11 |
"--port",
|
| 12 |
type=int,
|
| 13 |
help="Server port",
|
| 14 |
-
default=
|
| 15 |
)
|
| 16 |
parser.add_argument(
|
| 17 |
"--model",
|
|
@@ -78,4 +78,4 @@ def semantic_search():
|
|
| 78 |
scores = util.dot_score(query_embedding, document_embeddings).squeeze()
|
| 79 |
return {"similarities": [float(s) for s in scores]}
|
| 80 |
|
| 81 |
-
bottle.run(port=args.port, server="cheroot")
|
|
|
|
| 11 |
"--port",
|
| 12 |
type=int,
|
| 13 |
help="Server port",
|
| 14 |
+
default=7860
|
| 15 |
)
|
| 16 |
parser.add_argument(
|
| 17 |
"--model",
|
|
|
|
| 78 |
scores = util.dot_score(query_embedding, document_embeddings).squeeze()
|
| 79 |
return {"similarities": [float(s) for s in scores]}
|
| 80 |
|
| 81 |
+
bottle.run(host="0.0.0.0", port=args.port, server="cheroot")
|