Yaron Koresh commited on
Commit
b129e8e
·
verified ·
1 Parent(s): ccc944a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -119,10 +119,10 @@ with gr.Blocks(theme=gr.themes.Soft(),css=css) as demo:
119
  with gr.Row():
120
  run_button = gr.Button("Run")
121
  result = gr.Image(elem_id="image-container", label="Result", show_label=False, type='filepath')
122
- prompt.input(
123
  fn = limiter,
124
  inputs = [prompt],
125
- outputs = [prompt],
126
  )
127
  run_button.click(
128
  fn = infer,
 
119
  with gr.Row():
120
  run_button = gr.Button("Run")
121
  result = gr.Image(elem_id="image-container", label="Result", show_label=False, type='filepath')
122
+ prompt.change(
123
  fn = limiter,
124
  inputs = [prompt],
125
+ outputs = [prompt]
126
  )
127
  run_button.click(
128
  fn = infer,