Blane187 commited on
Commit
450081e
1 Parent(s): 9954d58

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -4,7 +4,6 @@ from PIL import Image
4
  import io
5
  import os
6
 
7
-
8
  API_URL = "https://api-inference.huggingface.co/models/Blane187/memcho-s1-ponyxl-lora-nochekaiser"
9
  API_TOKEN = os.getenv("HF_READ_TOKEN")
10
 
@@ -25,6 +24,14 @@ with gr.Blocks(theme="Hev832/niceandsimple") as demo:
25
 
26
  output_image = gr.Image(label="Generated Image")
27
 
 
 
 
 
 
 
 
 
28
  generate_btn.click(fn=query, inputs=prompt_input, outputs=output_image)
29
 
30
- demo.launch()
 
4
  import io
5
  import os
6
 
 
7
  API_URL = "https://api-inference.huggingface.co/models/Blane187/memcho-s1-ponyxl-lora-nochekaiser"
8
  API_TOKEN = os.getenv("HF_READ_TOKEN")
9
 
 
24
 
25
  output_image = gr.Image(label="Generated Image")
26
 
27
+ # Add Gradio examples
28
+ gr.Examples(
29
+ examples=[
30
+ ["memcho, blonde hair, blue eyes, blunt bangs, demon horns, fake horns, horns, short hair,"],
31
+ ],
32
+ inputs=prompt_input
33
+ )
34
+
35
  generate_btn.click(fn=query, inputs=prompt_input, outputs=output_image)
36
 
37
+ demo.launch()