yeq6x commited on
Commit
fff4cf4
Β·
1 Parent(s): b3a1d7a

fix example

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -7,6 +7,9 @@ from scripts.process_utils import initialize, process_image_as_base64
7
  from scripts.anime import init_model
8
  from scripts.generate_prompt import load_wd14_tagger_model
9
 
 
 
 
10
  # εˆζœŸεŒ–
11
  initialize(_use_local=False, use_gpu=True)
12
  init_model(use_local=False)
@@ -72,7 +75,7 @@ with gr.Blocks() as demo:
72
  sketch_output = gr.Image(type="pil", label="Sketch Image")
73
 
74
  gr.Examples(
75
- examples=sample_images,
76
  inputs=[input_image, mode, weight1, weight2],
77
  outputs=[sotai_output, sketch_output],
78
  fn=gradio_process_image,
 
7
  from scripts.anime import init_model
8
  from scripts.generate_prompt import load_wd14_tagger_model
9
 
10
+ # from dotenv import load_dotenv
11
+ # load_dotenv()
12
+
13
  # εˆζœŸεŒ–
14
  initialize(_use_local=False, use_gpu=True)
15
  init_model(use_local=False)
 
75
  sketch_output = gr.Image(type="pil", label="Sketch Image")
76
 
77
  gr.Examples(
78
+ examples=[[path, "original", 0.6, 0.05] for path in sample_images],
79
  inputs=[input_image, mode, weight1, weight2],
80
  outputs=[sotai_output, sketch_output],
81
  fn=gradio_process_image,