Update app.py
Browse files
app.py
CHANGED
|
@@ -68,7 +68,7 @@ def on_change_event(app_state):
|
|
| 68 |
if app_state and app_state['running'] and app_state['img']:
|
| 69 |
img = app_state['img']
|
| 70 |
step = app_state['step']
|
| 71 |
-
label = f'Reconstructed image from the latent state at step {step}. It will get better :)'
|
| 72 |
print(f'Updating the image:! {app_state}')
|
| 73 |
app_state['dots'] += 1
|
| 74 |
app_state['dots'] = app_state['dots'] % 10
|
|
@@ -94,7 +94,7 @@ with gr.Blocks() as demo:
|
|
| 94 |
app_state['img'] = res
|
| 95 |
app_state['step'] = step
|
| 96 |
app_state['img_list'].append(res)
|
| 97 |
-
app_state['status_msg'] = f'Generating step {step +
|
| 98 |
|
| 99 |
prompt = prompt + ' masterpiece charcoal pencil art lord of the rings illustration'
|
| 100 |
img = pipe(prompt, height=512, width=512, num_inference_steps=inference_steps, callback=callback, callback_steps=1)
|
|
|
|
| 68 |
if app_state and app_state['running'] and app_state['img']:
|
| 69 |
img = app_state['img']
|
| 70 |
step = app_state['step']
|
| 71 |
+
label = f'Reconstructed image from the latent state at step {step+1}. It will get better :)'
|
| 72 |
print(f'Updating the image:! {app_state}')
|
| 73 |
app_state['dots'] += 1
|
| 74 |
app_state['dots'] = app_state['dots'] % 10
|
|
|
|
| 94 |
app_state['img'] = res
|
| 95 |
app_state['step'] = step
|
| 96 |
app_state['img_list'].append(res)
|
| 97 |
+
app_state['status_msg'] = f'Generating step {step + 2}'
|
| 98 |
|
| 99 |
prompt = prompt + ' masterpiece charcoal pencil art lord of the rings illustration'
|
| 100 |
img = pipe(prompt, height=512, width=512, num_inference_steps=inference_steps, callback=callback, callback_steps=1)
|