Spaces:
Sleeping
Sleeping
Update chatbot_rag.py
Browse files- chatbot_rag.py +1 -0
chatbot_rag.py
CHANGED
|
@@ -103,6 +103,7 @@ def build_qa():
|
|
| 103 |
return "\n".join(texts)
|
| 104 |
|
| 105 |
|
|
|
|
| 106 |
def hf_to_str(x):
|
| 107 |
"""Convert Hugging Face pipeline output to clean plain text."""
|
| 108 |
if isinstance(x, list) and "generated_text" in x[0]:
|
|
|
|
| 103 |
return "\n".join(texts)
|
| 104 |
|
| 105 |
|
| 106 |
+
|
| 107 |
def hf_to_str(x):
|
| 108 |
"""Convert Hugging Face pipeline output to clean plain text."""
|
| 109 |
if isinstance(x, list) and "generated_text" in x[0]:
|