RelativelyUnique commited on
Commit
92079a1
1 Parent(s): 7d5fe80

specify args

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -11,7 +11,7 @@ Given a written description of a character, real or imagined, living or dead - t
11
  and then describes which pokemon type they would be. For example...
12
 
13
  "Born and raised in the Austrian Empire, Nikolai Tesla studied engineering and physics in the 1870s without receiving a degree, gaining practical experience in the early 1880s working in telephony and at Continental Edison in the new electric power industry."
14
- would be an electric-type pokemon.
15
 
16
  </center>
17
  """
@@ -30,6 +30,6 @@ gr_labels = lambda list_of_dicts: {d['label']: d['score'] for d in list_of_dicts
30
 
31
  compose = lambda description: gr_labels(clf(description))
32
 
33
- demo = gr.Interface(fn=compose, inputs="text", outputs=gr.outputs.Label(num_top_classes=5))
34
 
35
  demo.launch()
 
11
  and then describes which pokemon type they would be. For example...
12
 
13
  "Born and raised in the Austrian Empire, Nikolai Tesla studied engineering and physics in the 1870s without receiving a degree, gaining practical experience in the early 1880s working in telephony and at Continental Edison in the new electric power industry."
14
+ Nikolai Tesla would be an electric-type pokemon.
15
 
16
  </center>
17
  """
 
30
 
31
  compose = lambda description: gr_labels(clf(description))
32
 
33
+ demo = gr.Interface(fn=compose, inputs="text", outputs=gr.outputs.Label(num_top_classes=5), title=title, description=description, article=article)
34
 
35
  demo.launch()