Update app.py
Browse files
app.py
CHANGED
@@ -144,14 +144,11 @@ def qa_retrieve_yt(query,):
|
|
144 |
def flush():
|
145 |
return None
|
146 |
|
147 |
-
examples = [
|
148 |
-
["Will Russia win the war in Ukraine?"],
|
149 |
|
150 |
-
]
|
151 |
|
152 |
ref_art = gr.Interface(fn=qa_retrieve_art, label="Articles",
|
153 |
inputs=gr.inputs.Textbox(lines=5, label="what would you like to learn about?"),
|
154 |
-
outputs = gr.components.JSON(label="articles")
|
155 |
# ref_yt = gr.Interface(fn=qa_retrieve_yt, label="Youtube",
|
156 |
# inputs=gr.inputs.Textbox(lines=5, label="what would you like to learn about?"),
|
157 |
# outputs = gr.components.JSON(label="youtube"),title = "youtube", examples=examples)
|
|
|
144 |
def flush():
|
145 |
return None
|
146 |
|
|
|
|
|
147 |
|
|
|
148 |
|
149 |
ref_art = gr.Interface(fn=qa_retrieve_art, label="Articles",
|
150 |
inputs=gr.inputs.Textbox(lines=5, label="what would you like to learn about?"),
|
151 |
+
outputs = gr.components.JSON(label="articles"))
|
152 |
# ref_yt = gr.Interface(fn=qa_retrieve_yt, label="Youtube",
|
153 |
# inputs=gr.inputs.Textbox(lines=5, label="what would you like to learn about?"),
|
154 |
# outputs = gr.components.JSON(label="youtube"),title = "youtube", examples=examples)
|