RamAnanth1 commited on
Commit
d96d1c8
1 Parent(s): 52a42a9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -45,7 +45,7 @@ theme = gr.themes.Monochrome(
45
  css = ".generating {visibility: hidden}"
46
 
47
  examples = [
48
- ["banff.jpg", "Can you tell me about this image in detail", 1, 200, 5, 1, 3, 0.9, "Nucleus sampling"]
49
  ]
50
  with gr.Blocks(theme=theme, analytics_enabled=False,css=css) as demo:
51
  gr.Markdown("## InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuning")
@@ -55,6 +55,8 @@ with gr.Blocks(theme=theme, analytics_enabled=False,css=css) as demo:
55
  The demo is based on the official <a href="https://github.com/salesforce/LAVIS/tree/main/projects/instructblip" style="text-decoration: underline;" target="_blank"> Github </a> implementation
56
  """
57
  )
 
 
58
  with gr.Row():
59
  with gr.Column(scale=3):
60
  image_input = gr.Image(type="pil")
 
45
  css = ".generating {visibility: hidden}"
46
 
47
  examples = [
48
+ ["banff.jpg", "Can you tell me about this image in detail", 1, 200, 5, 1, 3, 0.9, "Beam search"]
49
  ]
50
  with gr.Blocks(theme=theme, analytics_enabled=False,css=css) as demo:
51
  gr.Markdown("## InstructBLIP: Towards General-purpose Vision-Language Models with Instruction Tuning")
 
55
  The demo is based on the official <a href="https://github.com/salesforce/LAVIS/tree/main/projects/instructblip" style="text-decoration: underline;" target="_blank"> Github </a> implementation
56
  """
57
  )
58
+ gr.HTML("<p>You can duplicate this Space to run it privately without a queue for shorter queue times : <a style='display:inline-block' href='https://huggingface.co/spaces/RamAnanth1/InstructBLIP?duplicate=true'><img src='https://img.shields.io/badge/-Duplicate%20Space-blue?labelColor=white&style=flat&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAP5JREFUOE+lk7FqAkEURY+ltunEgFXS2sZGIbXfEPdLlnxJyDdYB62sbbUKpLbVNhyYFzbrrA74YJlh9r079973psed0cvUD4A+4HoCjsA85X0Dfn/RBLBgBDxnQPfAEJgBY+A9gALA4tcbamSzS4xq4FOQAJgCDwV2CPKV8tZAJcAjMMkUe1vX+U+SMhfAJEHasQIWmXNN3abzDwHUrgcRGmYcgKe0bxrblHEB4E/pndMazNpSZGcsZdBlYJcEL9Afo75molJyM2FxmPgmgPqlWNLGfwZGG6UiyEvLzHYDmoPkDDiNm9JR9uboiONcBXrpY1qmgs21x1QwyZcpvxt9NS09PlsPAAAAAElFTkSuQmCC&logoWidth=14' alt='Duplicate Space'></a> </p>")
59
+
60
  with gr.Row():
61
  with gr.Column(scale=3):
62
  image_input = gr.Image(type="pil")