Yinhong Liu commited on
Commit
67fdb88
·
1 Parent(s): 5bd85a8

fix sd3 pipeline

Browse files
.gitignore CHANGED
@@ -1,2 +1,2 @@
1
- __pycache__/
2
  .DS_Store
 
1
+ __pycache__
2
  .DS_Store
app.py CHANGED
@@ -52,7 +52,6 @@ MAX_IMAGE_SIZE = 1024
52
  # @spaces.GPU #[uncomment to use ZeroGPU]
53
  def infer(
54
  prompt,
55
- negative_prompt,
56
  seed,
57
  randomize_seed,
58
  width,
@@ -70,7 +69,6 @@ def infer(
70
 
71
  image = pipe(
72
  prompt=prompt,
73
- negative_prompt=negative_prompt,
74
  guidance_scale=1,
75
  num_inference_steps=num_inference_steps,
76
  width=width,
@@ -118,12 +116,6 @@ with gr.Blocks(css=css) as demo:
118
  result = gr.Image(label="Result", show_label=False)
119
 
120
  with gr.Accordion("Advanced Settings", open=False):
121
- negative_prompt = gr.Text(
122
- label="Negative prompt",
123
- max_lines=1,
124
- placeholder="Enter a negative prompt",
125
- visible=False,
126
- )
127
 
128
  seed = gr.Slider(
129
  label="Seed",
@@ -175,7 +167,6 @@ with gr.Blocks(css=css) as demo:
175
  fn=infer,
176
  inputs=[
177
  prompt,
178
- negative_prompt,
179
  seed,
180
  randomize_seed,
181
  width,
 
52
  # @spaces.GPU #[uncomment to use ZeroGPU]
53
  def infer(
54
  prompt,
 
55
  seed,
56
  randomize_seed,
57
  width,
 
69
 
70
  image = pipe(
71
  prompt=prompt,
 
72
  guidance_scale=1,
73
  num_inference_steps=num_inference_steps,
74
  width=width,
 
116
  result = gr.Image(label="Result", show_label=False)
117
 
118
  with gr.Accordion("Advanced Settings", open=False):
 
 
 
 
 
 
119
 
120
  seed = gr.Slider(
121
  label="Seed",
 
167
  fn=infer,
168
  inputs=[
169
  prompt,
 
170
  seed,
171
  randomize_seed,
172
  width,
sid/__pycache__/__init__.cpython-312.pyc DELETED
Binary file (1.89 kB)
 
sid/__pycache__/pipeline_output.cpython-312.pyc DELETED
Binary file (1.13 kB)
 
sid/__pycache__/pipeline_sid_flux.cpython-312.pyc DELETED
Binary file (46.2 kB)
 
sid/__pycache__/pipeline_sid_sana.cpython-312.pyc DELETED
Binary file (46.6 kB)
 
sid/__pycache__/pipeline_sid_sd3.cpython-312.pyc DELETED
Binary file (32.4 kB)