Spaces:
Sleeping
Sleeping
fix small error
Browse files
app.py
CHANGED
|
@@ -21,10 +21,11 @@ def text_to_image(prompt, image, client):
|
|
| 21 |
return result
|
| 22 |
|
| 23 |
with gr.Blocks() as demo:
|
|
|
|
| 24 |
image = gr.Image()
|
| 25 |
input_image = gr.Image(type="filepath")
|
| 26 |
prompt = gr.Textbox(max_lines=1)
|
| 27 |
-
prompt.submit(text_to_image, [prompt, input_image], [image])
|
| 28 |
|
| 29 |
# gr.Examples(
|
| 30 |
# examples=[
|
|
|
|
| 21 |
return result
|
| 22 |
|
| 23 |
with gr.Blocks() as demo:
|
| 24 |
+
client = gr.State(None)
|
| 25 |
image = gr.Image()
|
| 26 |
input_image = gr.Image(type="filepath")
|
| 27 |
prompt = gr.Textbox(max_lines=1)
|
| 28 |
+
prompt.submit(text_to_image, [prompt, input_image, client], [image])
|
| 29 |
|
| 30 |
# gr.Examples(
|
| 31 |
# examples=[
|