Spaces:
Paused
Paused
Commit
·
17e23dd
1
Parent(s):
880e5a0
Update app.py
Browse files
app.py
CHANGED
@@ -34,9 +34,9 @@ def chatbot(input_text):
|
|
34 |
"---------------------\n"
|
35 |
"Dado esto, por favor responde a la pregunta: {input_text}\n"
|
36 |
)
|
37 |
-
QA_TEMPLATE = PromptTemplate(TEMPLATE_STR)
|
38 |
# query the index and get the response
|
39 |
-
response = query_engine.query(
|
40 |
return response.response
|
41 |
|
42 |
iface = gr.Interface(fn=chatbot,
|
|
|
34 |
"---------------------\n"
|
35 |
"Dado esto, por favor responde a la pregunta: {input_text}\n"
|
36 |
)
|
37 |
+
#QA_TEMPLATE = PromptTemplate(TEMPLATE_STR)
|
38 |
# query the index and get the response
|
39 |
+
response = query_engine.query(TEMPLATE_STR)
|
40 |
return response.response
|
41 |
|
42 |
iface = gr.Interface(fn=chatbot,
|