howard-hou commited on
Commit
d2619a7
1 Parent(s): 586d6a1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -65,7 +65,7 @@ def generate_prompt(instruction):
65
  def generate(
66
  ctx,
67
  image_state,
68
- token_count=200,
69
  temperature=0.2,
70
  top_p=0.3,
71
  presencePenalty = 0.0,
@@ -177,13 +177,13 @@ with gr.Blocks(title=title) as demo:
177
  with gr.Column():
178
  image = gr.Image(type='pil', label="Image")
179
  with gr.Column():
180
- prompt = gr.Textbox(lines=8, label="Prompt",
181
  value="Render a clear and concise summary of the photo.")
182
  with gr.Row():
183
  submit = gr.Button("Submit", variant="primary")
184
  clear = gr.Button("Clear", variant="secondary")
185
  with gr.Column():
186
- output = gr.Textbox(label="Output", lines=10)
187
  data = gr.Dataset(components=[image, prompt], samples=examples, label="Examples", headers=["Image", "Prompt"])
188
  submit.click(chatbot, [image, prompt], [output])
189
  clear.click(lambda: None, [], [output])
 
65
  def generate(
66
  ctx,
67
  image_state,
68
+ token_count=512,
69
  temperature=0.2,
70
  top_p=0.3,
71
  presencePenalty = 0.0,
 
177
  with gr.Column():
178
  image = gr.Image(type='pil', label="Image")
179
  with gr.Column():
180
+ prompt = gr.Textbox(lines=10, label="Prompt",
181
  value="Render a clear and concise summary of the photo.")
182
  with gr.Row():
183
  submit = gr.Button("Submit", variant="primary")
184
  clear = gr.Button("Clear", variant="secondary")
185
  with gr.Column():
186
+ output = gr.Textbox(label="Output", lines=12)
187
  data = gr.Dataset(components=[image, prompt], samples=examples, label="Examples", headers=["Image", "Prompt"])
188
  submit.click(chatbot, [image, prompt], [output])
189
  clear.click(lambda: None, [], [output])