Spaces:
Sleeping
Sleeping
fix using the url link
Browse files
fe/app.py
CHANGED
|
@@ -16,7 +16,7 @@ if ds:
|
|
| 16 |
query = st.text_input("Enter your search query",
|
| 17 |
placeholder="Ask your question")
|
| 18 |
if query:
|
| 19 |
-
res = requests.get(f"
|
| 20 |
timeout=5000 ).json()
|
| 21 |
answer = res["answer"]
|
| 22 |
|
|
|
|
| 16 |
query = st.text_input("Enter your search query",
|
| 17 |
placeholder="Ask your question")
|
| 18 |
if query:
|
| 19 |
+
res = requests.get(f"{BE}/v1/datasets/{ds}/answer?query={query}",
|
| 20 |
timeout=5000 ).json()
|
| 21 |
answer = res["answer"]
|
| 22 |
|