Yehor commited on
Commit
75ed04e
·
verified ·
1 Parent(s): e2424e0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -26,7 +26,11 @@ def predict(question):
26
  }
27
  )
28
 
29
- return str(topics)
30
 
31
- demo = gr.Interface(fn=predict, inputs="text", outputs="text")
 
 
 
 
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()