Spaces:
Runtime error
Runtime error
lzyhha
commited on
Commit
·
ca151ec
1
Parent(s):
ac469eb
test
Browse files
app.py
CHANGED
|
@@ -312,7 +312,7 @@ def create_demo(model):
|
|
| 312 |
|
| 313 |
def generate_image(*inputs):
|
| 314 |
images = []
|
| 315 |
-
if grid_h + 1 != model.grid_h or grid_w != model.grid_w:
|
| 316 |
raise gr.Error('Please wait for the loading to complete.')
|
| 317 |
for i in range(model.grid_h):
|
| 318 |
images.append([])
|
|
|
|
| 312 |
|
| 313 |
def generate_image(*inputs):
|
| 314 |
images = []
|
| 315 |
+
if grid_h.value + 1 != model.grid_h or grid_w != model.grid_w:
|
| 316 |
raise gr.Error('Please wait for the loading to complete.')
|
| 317 |
for i in range(model.grid_h):
|
| 318 |
images.append([])
|