Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,11 @@ def predict(question):
|
|
26 |
}
|
27 |
)
|
28 |
|
29 |
-
return
|
30 |
|
31 |
-
|
|
|
|
|
|
|
|
|
32 |
demo.launch()
|
|
|
26 |
}
|
27 |
)
|
28 |
|
29 |
+
return topics
|
30 |
|
31 |
+
inputs = gr.Textbox(lines=2, label="Enter the text", value="Як отримати виплати ВПО?")
|
32 |
+
|
33 |
+
outputs = gr.JSON(label="Output")
|
34 |
+
|
35 |
+
demo = gr.Interface(fn=predict, inputs=inputs, outputs=outputs)
|
36 |
demo.launch()
|