Denver Citizen9 commited on
Commit
284a7a9
1 Parent(s): faf140a

updated examples

Browse files
Files changed (1) hide show
  1. app.py +10 -3
app.py CHANGED
@@ -49,13 +49,20 @@ def launch_demo():
49
 
50
  dropdown = gr.components.Dropdown(categories, label="Category")
51
  text_input = gr.components.Textbox(label="Topic")
52
- output = gr.components.Textbox(label="Analysis Result")
53
 
 
54
  rando_choice = random.choice(categories)
55
  rando_topic = random.choice(topics)
 
 
 
 
56
 
57
  examples = [
58
  [rando_choice, rando_topic],
 
 
59
  ]
60
 
61
  gr.Interface(
@@ -63,8 +70,8 @@ def launch_demo():
63
  inputs=[dropdown, text_input],
64
  outputs=output,
65
  examples=examples,
66
- title="Yo Momma's so Generative",
67
- description="Select Category, enter Topic, and click Submit. You can also try the supplied example.",
68
  theme="default",
69
  ).launch()
70
 
 
49
 
50
  dropdown = gr.components.Dropdown(categories, label="Category")
51
  text_input = gr.components.Textbox(label="Topic")
52
+ output = gr.components.Textbox(label="Lolz")
53
 
54
+ # some random pre-seeded options
55
  rando_choice = random.choice(categories)
56
  rando_topic = random.choice(topics)
57
+ rando_choice_b = random.choice(categories)
58
+ rando_topic_b = random.choice(topics)
59
+ rando_choice_c = random.choice(categories)
60
+ rando_topic_c = random.choice(topics)
61
 
62
  examples = [
63
  [rando_choice, rando_topic],
64
+ [rando_choice_b, rando_topic_b],
65
+ [rando_choice_c, rando_topic_c],
66
  ]
67
 
68
  gr.Interface(
 
70
  inputs=[dropdown, text_input],
71
  outputs=output,
72
  examples=examples,
73
+ title="Yo Momma's so Generative...",
74
+ description="Select Category, enter Topic, and click Submit. You can also try a supplied example.",
75
  theme="default",
76
  ).launch()
77