Blane187 commited on
Commit
96a2abb
·
verified ·
1 Parent(s): f82ce78

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -9,16 +9,20 @@ demo = gr.load(model, src="models", theme="Blane187/fuchsia")
9
  # Define the input component for the example
10
  input_component = gr.Textbox(lines=2, placeholder="Enter description here...")
11
 
 
 
 
12
  examples = gr.Examples(
13
  examples=[
14
  ["ai hoshino, long hair, bangs, purple eyes, purple hair, symbol-shaped pupils"],
15
  ],
16
  inputs=input_component,
 
17
  )
18
 
19
  # Create the interface with the input component
20
- demo = gr.Interface(fn=demo.fn, inputs=input_component, outputs="auto", theme="Blane187/fuchsia")
21
 
22
  # Launch the demo with examples
23
  examples.launch()
24
- demo.launch()
 
9
  # Define the input component for the example
10
  input_component = gr.Textbox(lines=2, placeholder="Enter description here...")
11
 
12
+ # Define the output component based on the expected model output
13
+ output_component = gr.Image()
14
+
15
  examples = gr.Examples(
16
  examples=[
17
  ["ai hoshino, long hair, bangs, purple eyes, purple hair, symbol-shaped pupils"],
18
  ],
19
  inputs=input_component,
20
+ outputs=output_component
21
  )
22
 
23
  # Create the interface with the input component
24
+ interface = gr.Interface(fn=demo.fn, inputs=input_component, outputs=output_component, theme="Blane187/fuchsia")
25
 
26
  # Launch the demo with examples
27
  examples.launch()
28
+ interface.launch()