Subha95 commited on
Commit
96a7c81
·
verified ·
1 Parent(s): be17c77

Update chatbot_rag.py

Browse files
Files changed (1) hide show
  1. 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]: