updating reference to question variable
Browse files
app.py
CHANGED
|
@@ -77,7 +77,7 @@ def detect_language(text):
|
|
| 77 |
return "unknown"
|
| 78 |
#%%
|
| 79 |
# Define Gradio function
|
| 80 |
-
def nishauri(
|
| 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])
|