PhotographerAlpha7 commited on
Commit
b36701d
1 Parent(s): 243bb44

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -37,18 +37,16 @@ with open('categories.json', 'r') as file:
37
  choices = {}
38
 
39
  for category, options in categories.items():
40
- choice = gr.inputs.Dropdown(list=["random", "none"] + options['random'], label=category, type="value")
41
  choices[category] = choice
42
 
43
- result_text = gr.outputs.Textbox()
44
 
45
  iface = gr.Interface(
46
  fn=generate_prompt_interface,
47
  inputs=list(choices.values()),
48
- outputs=result_text,
49
- title="Prompt Generator",
50
- description="Generate a prompt by selecting options from the dropdown menus.",
51
- theme="compact"
52
  )
53
 
54
  iface.launch()
 
37
  choices = {}
38
 
39
  for category, options in categories.items():
40
+ choice = gr.Dropdown(choices=["random", "none"] + options['random'], label=category, type="value")
41
  choices[category] = choice
42
 
43
+ result_text = gr.Textbox()
44
 
45
  iface = gr.Interface(
46
  fn=generate_prompt_interface,
47
  inputs=list(choices.values()),
48
+ outputs=result_text
49
+
 
 
50
  )
51
 
52
  iface.launch()