Update app.py
Browse files
app.py
CHANGED
|
@@ -42,6 +42,7 @@ async def main(question):
|
|
| 42 |
index = GPTVectorStoreIndex.from_documents(documents, service_context=service_context)
|
| 43 |
query_engine = index.as_query_engine(service_context=service_context)
|
| 44 |
response = query_engine.query(question)
|
|
|
|
| 45 |
return response
|
| 46 |
|
| 47 |
iface = Interface(fn=main, inputs="text", outputs="text")
|
|
|
|
| 42 |
index = GPTVectorStoreIndex.from_documents(documents, service_context=service_context)
|
| 43 |
query_engine = index.as_query_engine(service_context=service_context)
|
| 44 |
response = query_engine.query(question)
|
| 45 |
+
print(response)
|
| 46 |
return response
|
| 47 |
|
| 48 |
iface = Interface(fn=main, inputs="text", outputs="text")
|