Spaces:
Runtime error
Runtime error
Commit ·
480a828
1
Parent(s): da16829
Fix shape error
Browse files- app.py +1 -1
- requirements.txt +1 -1
app.py
CHANGED
|
@@ -68,7 +68,7 @@ with gr.Blocks() as demo:
|
|
| 68 |
|
| 69 |
with gr.Row():
|
| 70 |
input_image = gr.Sketchpad(
|
| 71 |
-
shape=(750,
|
| 72 |
brush_color="black",
|
| 73 |
image_mode="L", # 确保输出是单通道
|
| 74 |
type="pil"
|
|
|
|
| 68 |
|
| 69 |
with gr.Row():
|
| 70 |
input_image = gr.Sketchpad(
|
| 71 |
+
shape=(750,750),
|
| 72 |
brush_color="black",
|
| 73 |
image_mode="L", # 确保输出是单通道
|
| 74 |
type="pil"
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
torch>=2.0.0
|
| 2 |
-
gradio==3.
|
| 3 |
numpy>=1.24.0
|
| 4 |
pillow>=10.0.0
|
| 5 |
torchvision>=0.15.0
|
|
|
|
| 1 |
torch>=2.0.0
|
| 2 |
+
gradio==3.44.0
|
| 3 |
numpy>=1.24.0
|
| 4 |
pillow>=10.0.0
|
| 5 |
torchvision>=0.15.0
|