Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,8 @@ query_engine = index.as_query_engine()
|
|
| 59 |
import gradio as gr
|
| 60 |
|
| 61 |
def text_to_uppercase(text):
|
| 62 |
-
|
|
|
|
| 63 |
|
| 64 |
iface = gr.Interface(fn=text_to_uppercase, inputs="text", outputs="text")
|
| 65 |
iface.launch()
|
|
|
|
| 59 |
import gradio as gr
|
| 60 |
|
| 61 |
def text_to_uppercase(text):
|
| 62 |
+
response=query_engine.query(text)
|
| 63 |
+
return response
|
| 64 |
|
| 65 |
iface = gr.Interface(fn=text_to_uppercase, inputs="text", outputs="text")
|
| 66 |
iface.launch()
|