Jiaming Han commited on
Commit
453b7ae
·
1 Parent(s): 146dae5
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -84,7 +84,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
84
  with gr.Tab("Image Generation"):
85
  with gr.Row():
86
  with gr.Column(scale=1):
87
- prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt")
88
  with gr.Accordion("Advanced Settings", open=False):
89
  resolution = gr.Radio(
90
  ["512px", "1024px"], value="1024px", label="Resolution"
@@ -111,7 +111,7 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
111
  with gr.Tab("Image Understanding"):
112
  with gr.Row():
113
  with gr.Column(scale=1):
114
- image_input = gr.Image(label="Upload Image", type="pil")
115
  question_input = gr.Textbox(label="Instruction", value="Describe the image shortly.")
116
  with gr.Row():
117
  qa_btn = gr.Button("Generate")
 
84
  with gr.Tab("Image Generation"):
85
  with gr.Row():
86
  with gr.Column(scale=1):
87
+ prompt = gr.Textbox(label="Prompt", placeholder="Enter a prompt", default="A photo of a macaw")
88
  with gr.Accordion("Advanced Settings", open=False):
89
  resolution = gr.Radio(
90
  ["512px", "1024px"], value="1024px", label="Resolution"
 
111
  with gr.Tab("Image Understanding"):
112
  with gr.Row():
113
  with gr.Column(scale=1):
114
+ image_input = gr.Image(label="Upload Image", type="pil", value="https://raw.githubusercontent.com/csuhan/Tar/refs/heads/main/asset/dog_cat.jpg")
115
  question_input = gr.Textbox(label="Instruction", value="Describe the image shortly.")
116
  with gr.Row():
117
  qa_btn = gr.Button("Generate")