Spaces:
Sleeping
Sleeping
jpalomar
commited on
Commit
·
c7fa7f9
1
Parent(s):
4ba148c
Fix
Browse files- app.py +1 -1
- requirements.txt +3 -3
app.py
CHANGED
|
@@ -40,7 +40,7 @@ def lexi_response(message, history):
|
|
| 40 |
matched_q, (answer, explanation) = get_closest_match(message)
|
| 41 |
history.append({"role": "user", "content": message})
|
| 42 |
history.append({"role": "assistant", "content": answer})
|
| 43 |
-
return "", history, explanation, gr.update(visible=False)
|
| 44 |
|
| 45 |
def show_explanation(explanation):
|
| 46 |
return gr.update(value=explanation or "No explanation available.", visible=True)
|
|
|
|
| 40 |
matched_q, (answer, explanation) = get_closest_match(message)
|
| 41 |
history.append({"role": "user", "content": message})
|
| 42 |
history.append({"role": "assistant", "content": answer})
|
| 43 |
+
return "", history, explanation, gr.update(value="", visible=False)
|
| 44 |
|
| 45 |
def show_explanation(explanation):
|
| 46 |
return gr.update(value=explanation or "No explanation available.", visible=True)
|
requirements.txt
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
-
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 1 |
+
gradio
|
| 2 |
+
sentence-transformers
|
| 3 |
+
torch
|