Skip to content

Commit

Permalink
Update client.py
Browse files Browse the repository at this point in the history
fixed gr.Image().style
to gr.Image(height=512)
  • Loading branch information
autonomouscereal authored Jan 18, 2024
1 parent fe3bb16 commit 375a0e3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def generate(prompt):
with gr.Blocks() as app:
prompt = gr.Textbox(label="Prompt")
submit_btn = gr.Button("Generate")
img_output = gr.Image().style(height=512)
img_output = gr.Image(height=512)
submit_btn.click(fn=generate, inputs=prompt, outputs=img_output)

app.launch(server_name="0.0.0.0")

0 comments on commit 375a0e3

Please sign in to comment.