YoniFriedman commited on
Commit
345ea22
·
verified ·
1 Parent(s): def4f73

updating reference to question variable

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -77,7 +77,7 @@ def detect_language(text):
77
  return "unknown"
78
  #%%
79
  # Define Gradio function
80
- def nishauri(user_params: str, conversation_history: list[str]):
81
 
82
  """Process user query, detect language, handle greetings, acknowledgments, and retrieve relevant information."""
83
  context = " ".join([item["user"] + " " + item["chatbot"] for item in conversation_history])
 
77
  return "unknown"
78
  #%%
79
  # Define Gradio function
80
+ def nishauri(question, conversation_history: list[str]):
81
 
82
  """Process user query, detect language, handle greetings, acknowledgments, and retrieve relevant information."""
83
  context = " ".join([item["user"] + " " + item["chatbot"] for item in conversation_history])