Spaces:
Paused
Paused
ramortegui
commited on
Commit
•
cce79d0
1
Parent(s):
8d4bf48
Add return statement
Browse files
app.py
CHANGED
@@ -38,7 +38,7 @@ shakespeare_qa = RetrievalQA.from_chain_type(llm=llm, chain_type="stuff", retrie
|
|
38 |
|
39 |
|
40 |
def query(query):
|
41 |
-
shakespeare_qa.run(query)
|
42 |
|
43 |
iface = gr.Interface(fn=query, inputs="text", outputs="text")
|
44 |
iface.launch()
|
|
|
38 |
|
39 |
|
40 |
def query(query):
|
41 |
+
return shakespeare_qa.run(query)
|
42 |
|
43 |
iface = gr.Interface(fn=query, inputs="text", outputs="text")
|
44 |
iface.launch()
|