Spaces:
Runtime error
Runtime error
Fix pipeline import and gradio api mismatch
Browse files- app.py +2 -2
- requirements.txt +3 -2
app.py
CHANGED
|
@@ -73,7 +73,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 73 |
|
| 74 |
with gr.Accordion("Advanced Settings", open=False):
|
| 75 |
control_image = gr.Image(
|
| 76 |
-
|
| 77 |
type="filepath",
|
| 78 |
label="Control Image (Line Art)"
|
| 79 |
)
|
|
@@ -109,7 +109,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 109 |
|
| 110 |
gr.Examples(
|
| 111 |
examples=[
|
| 112 |
-
"
|
| 113 |
"Victorian style mansion interior with candlelight"
|
| 114 |
],
|
| 115 |
inputs=[prompt]
|
|
|
|
| 73 |
|
| 74 |
with gr.Accordion("Advanced Settings", open=False):
|
| 75 |
control_image = gr.Image(
|
| 76 |
+
sources=['upload', 'webcam', 'clipboard'],
|
| 77 |
type="filepath",
|
| 78 |
label="Control Image (Line Art)"
|
| 79 |
)
|
|
|
|
| 109 |
|
| 110 |
gr.Examples(
|
| 111 |
examples=[
|
| 112 |
+
"Shiba Inu wearing dinosaur costume riding skateboard",
|
| 113 |
"Victorian style mansion interior with candlelight"
|
| 114 |
],
|
| 115 |
inputs=[prompt]
|
requirements.txt
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
accelerate
|
| 2 |
-
diffusers
|
| 3 |
invisible_watermark
|
| 4 |
torch
|
| 5 |
transformers
|
| 6 |
-
xformers
|
|
|
|
|
|
| 1 |
accelerate
|
| 2 |
+
diffusers==0.31.0
|
| 3 |
invisible_watermark
|
| 4 |
torch
|
| 5 |
transformers
|
| 6 |
+
xformers
|
| 7 |
+
sentencepiece
|