Spaces:
Sleeping
Sleeping
Commit
·
af5a304
1
Parent(s):
b0470a0
return LLM answer
Browse files
app.py
CHANGED
@@ -23,8 +23,8 @@ query_engine = index.as_query_engine()
|
|
23 |
|
24 |
def greet(question):
|
25 |
|
26 |
-
return f"Hello, {question} !"
|
27 |
-
|
28 |
|
29 |
|
30 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
|
|
23 |
|
24 |
def greet(question):
|
25 |
|
26 |
+
# return f"Hello, {question} !"
|
27 |
+
return query_engine.query(question)
|
28 |
|
29 |
|
30 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|