Spaces:
Runtime error
Runtime error
lzyhha
commited on
Commit
·
5263fbf
1
Parent(s):
32cd882
test
Browse files
app.py
CHANGED
|
@@ -312,6 +312,8 @@ def create_demo(model):
|
|
| 312 |
|
| 313 |
def generate_image(*inputs):
|
| 314 |
images = []
|
|
|
|
|
|
|
| 315 |
for i in range(model.grid_h):
|
| 316 |
images.append([])
|
| 317 |
for j in range(model.grid_w):
|
|
|
|
| 312 |
|
| 313 |
def generate_image(*inputs):
|
| 314 |
images = []
|
| 315 |
+
if grid_h != 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([])
|
| 319 |
for j in range(model.grid_w):
|