Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -197,8 +197,7 @@ def make_html_table(caption):
|
|
| 197 |
return html
|
| 198 |
|
| 199 |
def create_dummy_image(width=512, height=512, alpha=0):
|
| 200 |
-
|
| 201 |
-
return Image.new("RGB", (width, height), (0, 0, 0))
|
| 202 |
|
| 203 |
def update_history_tables_on_select(evt: gr.SelectData):
|
| 204 |
if evt.index is not None and 0 <= evt.index < len(history):
|
|
@@ -528,7 +527,6 @@ window.addEventListener('load', () => {
|
|
| 528 |
img_out = gr.Image(
|
| 529 |
interactive=None,
|
| 530 |
value=create_dummy_image(width=512, height=512, alpha=0),
|
| 531 |
-
streaming=True,
|
| 532 |
label="Generate Image"
|
| 533 |
)
|
| 534 |
state = gr.State([])
|
|
|
|
| 197 |
return html
|
| 198 |
|
| 199 |
def create_dummy_image(width=512, height=512, alpha=0):
|
| 200 |
+
return Image.new("RGBA", (width, height), (0, 0, 0, alpha))
|
|
|
|
| 201 |
|
| 202 |
def update_history_tables_on_select(evt: gr.SelectData):
|
| 203 |
if evt.index is not None and 0 <= evt.index < len(history):
|
|
|
|
| 527 |
img_out = gr.Image(
|
| 528 |
interactive=None,
|
| 529 |
value=create_dummy_image(width=512, height=512, alpha=0),
|
|
|
|
| 530 |
label="Generate Image"
|
| 531 |
)
|
| 532 |
state = gr.State([])
|