Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -153,7 +153,7 @@ def rag(input_text, history, jezik):
|
|
| 153 |
# if (o_jezik!='N/A'):
|
| 154 |
# input_text += " - odgovori " + o_jezik + "."
|
| 155 |
# return query_engine.query(input_text)
|
| 156 |
-
response = chat_engine.chat(input_text)
|
| 157 |
return history + [[input_text, response]]
|
| 158 |
# Interface
|
| 159 |
# gr.Textbox(label="Pitanje:", lines=6),
|
|
|
|
| 153 |
# if (o_jezik!='N/A'):
|
| 154 |
# input_text += " - odgovori " + o_jezik + "."
|
| 155 |
# return query_engine.query(input_text)
|
| 156 |
+
response = chat_engine.chat(input_text).response
|
| 157 |
return history + [[input_text, response]]
|
| 158 |
# Interface
|
| 159 |
# gr.Textbox(label="Pitanje:", lines=6),
|