prithivMLmods commited on
Commit
0546a2c
·
verified ·
1 Parent(s): c139720

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -5
app.py CHANGED
@@ -172,10 +172,6 @@ def downsample_video(video_path):
172
  vidcap.release()
173
  return frames
174
 
175
- @spaces.GPU'system'gr.Examples(
176
- examples=image_examples,
177
- inputs=[image_query, image_upload]
178
- )
179
  @spaces.GPU
180
  def generate_image(model_name: str, text: str, image: Image.Image,
181
  max_new_tokens: int = 1024,
@@ -356,7 +352,7 @@ with gr.Blocks(css=css, theme="bethecloud/storj_theme") as demo:
356
  with gr.Column():
357
  input_img = gr.Image(label="Input Image", type="pil")
358
  system_prompt = gr.Textbox(label="System Prompt", value=default_system_prompt, visible=False)
359
- text_input = gr.Textbox(label="Query Input", placeholder="Detect 'humans'")
360
  submit_btn = gr.Button(value="Submit", elem_classes="submit-btn")
361
  with gr.Column():
362
  model_output_text = gr.Textbox(label="Model Output Text")
 
172
  vidcap.release()
173
  return frames
174
 
 
 
 
 
175
  @spaces.GPU
176
  def generate_image(model_name: str, text: str, image: Image.Image,
177
  max_new_tokens: int = 1024,
 
352
  with gr.Column():
353
  input_img = gr.Image(label="Input Image", type="pil")
354
  system_prompt = gr.Textbox(label="System Prompt", value=default_system_prompt, visible=False)
355
+ text_input = gr.Textbox(label="Query Input", placeholder="Detect Living things")
356
  submit_btn = gr.Button(value="Submit", elem_classes="submit-btn")
357
  with gr.Column():
358
  model_output_text = gr.Textbox(label="Model Output Text")