Atquiya-Labiba commited on
Commit
e7c3008
·
1 Parent(s): 4a4d1b0

Updated app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -3
app.py CHANGED
@@ -29,6 +29,16 @@ examples = [
29
  "What is the best way to evaluate performance of Generative Adverserial Network (GAN)? Perhaps measuring the distance between two distributions or maybe something else?"
30
  ]
31
 
32
- label = gr.Label(num_top_classes=5)
33
- iface = gr.Interface(fn=classify_question_tags, inputs=gr.Textbox(lines=6, placeholder="Enter your question here..."), outputs=label, examples=examples)
34
- iface.launch(inline=False)
 
 
 
 
 
 
 
 
 
 
 
29
  "What is the best way to evaluate performance of Generative Adverserial Network (GAN)? Perhaps measuring the distance between two distributions or maybe something else?"
30
  ]
31
 
32
+ demo = gr.Interface(
33
+ fn=classify_question_tags,
34
+ inputs=gr.Textbox(lines=8, placeholder="Enter your question here..."),
35
+ outputs=gr.Label(num_top_classes=5),
36
+ )
37
+
38
+ demo.examples = gr.Examples(
39
+ examples=examples,
40
+ inputs=demo.input_components,
41
+ examples_per_page=1
42
+ )
43
+
44
+ demo.launch(inline=False)