Spaces:
Sleeping
Sleeping
Lazar Radojevic
commited on
Commit
·
a787cc6
1
Parent(s):
f749c03
test
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
|
|
2 |
import requests
|
3 |
from typing import List, Tuple
|
4 |
|
5 |
-
API_URL = "
|
6 |
|
7 |
|
8 |
def get_similar_prompts(query: str, n: int) -> List[Tuple[float, str]]:
|
|
|
2 |
import requests
|
3 |
from typing import List, Tuple
|
4 |
|
5 |
+
API_URL = "https://huggingface.co/spaces/lazarr19/prompt-engine/most_similar"
|
6 |
|
7 |
|
8 |
def get_similar_prompts(query: str, n: int) -> List[Tuple[float, str]]:
|
run.py
CHANGED
@@ -1,4 +1,7 @@
|
|
1 |
import uvicorn
|
2 |
|
|
|
|
|
3 |
if __name__ == "__main__":
|
4 |
-
uvicorn.run("main:app", host="0.0.0.0", port=
|
|
|
|
1 |
import uvicorn
|
2 |
|
3 |
+
# import subprocess
|
4 |
+
|
5 |
if __name__ == "__main__":
|
6 |
+
uvicorn.run("main:app", host="0.0.0.0", port=8000, reload=True)
|
7 |
+
# subprocess.run(["streamlit", "run", "app.py", "--server.port", "7860"])
|