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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -3,13 +3,22 @@ import os
3
 
4
  model = "Blane187/ai-hoshino-s1-ponyxl-lora-nochekaise"
5
 
 
6
  demo = gr.load(model, src="models", theme="Blane187/fuchsia")
7
 
 
 
 
8
  examples = gr.Examples(
9
  examples=[
10
  ["ai hoshino, long hair, bangs, purple eyes, purple hair, symbol-shaped pupils"],
11
  ],
12
- inputs=demo.inputs, # Use the correct input component from the demo
13
  )
14
 
 
 
 
 
 
15
  demo.launch()
 
3
 
4
  model = "Blane187/ai-hoshino-s1-ponyxl-lora-nochekaise"
5
 
6
+ # Load the model
7
  demo = gr.load(model, src="models", theme="Blane187/fuchsia")
8
 
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()