yu-rp commited on
Commit
bf90ae0
Β·
1 Parent(s): f30487f

update examples

Browse files
app.py CHANGED
@@ -306,9 +306,9 @@ title_html = """
306
 
307
 
308
  tos_markdown = """
309
- <div style="text-align: right;">
310
  Acknowledgement: This demo is built upon the Hugging Face Space of <a href="https://huggingface.co/spaces/OpenGVLab/InternVL" target="_blank">InternVL</a>.
311
- </div>
312
  """
313
 
314
 
@@ -365,7 +365,7 @@ def build_demo():
365
  temperature = gr.Slider(
366
  minimum=0.0,
367
  maximum=2.0,
368
- value=0.2,
369
  step=0.1,
370
  interactive=True,
371
  label="Temperature",
@@ -373,7 +373,7 @@ def build_demo():
373
  top_p = gr.Slider(
374
  minimum=0.0,
375
  maximum=1.0,
376
- value=0.95,
377
  step=0.1,
378
  interactive=True,
379
  label="Top P",
@@ -395,7 +395,7 @@ def build_demo():
395
  alg_temp = gr.Slider(
396
  minimum=0.0,
397
  maximum=2.0,
398
- value=0.2,
399
  step=0.1,
400
  interactive=True,
401
  label="Temperature for Selectiion Algorithm",
@@ -422,25 +422,25 @@ def build_demo():
422
  [
423
  {
424
  "files": [
425
- "gallery/14.jfif",
426
  ],
427
- "text": "Please help me analyze this picture.",
428
  }
429
  ],
430
  [
431
  {
432
  "files": [
433
- "gallery/prod_9.jpg",
434
  ],
435
- "text": "Please help me describe the image.",
436
  }
437
  ],
438
  [
439
  {
440
  "files": [
441
- "gallery/15.PNG",
442
  ],
443
- "text": "Please help me analyze this picture.",
444
  }
445
  ],
446
  ],
 
306
 
307
 
308
  tos_markdown = """
309
+ <p align="right">
310
  Acknowledgement: This demo is built upon the Hugging Face Space of <a href="https://huggingface.co/spaces/OpenGVLab/InternVL" target="_blank">InternVL</a>.
311
+ </p>
312
  """
313
 
314
 
 
365
  temperature = gr.Slider(
366
  minimum=0.0,
367
  maximum=2.0,
368
+ value=0.0,
369
  step=0.1,
370
  interactive=True,
371
  label="Temperature",
 
373
  top_p = gr.Slider(
374
  minimum=0.0,
375
  maximum=1.0,
376
+ value=0.0,
377
  step=0.1,
378
  interactive=True,
379
  label="Top P",
 
395
  alg_temp = gr.Slider(
396
  minimum=0.0,
397
  maximum=2.0,
398
+ value=0.4,
399
  step=0.1,
400
  interactive=True,
401
  label="Temperature for Selectiion Algorithm",
 
422
  [
423
  {
424
  "files": [
425
+ "gallery/1.jpg",
426
  ],
427
+ "text": "Please help me describe the image.",
428
  }
429
  ],
430
  [
431
  {
432
  "files": [
433
+ "gallery/2.jpg",
434
  ],
435
+ "text": "First please perform reasoning, and think step by step to provide best answer to the following question: Is this airplane taking off or landing?",
436
  }
437
  ],
438
  [
439
  {
440
  "files": [
441
+ "gallery/3.jpg",
442
  ],
443
+ "text": "First please perform reasoning, and think step by step to provide best answer to the following question: What is the lamp on, a side table or a nightstand?",
444
  }
445
  ],
446
  ],
gallery/{prod_9.jpg β†’ 1.jpg} RENAMED
File without changes
gallery/{14.jfif β†’ 2.jpg} RENAMED
File without changes
gallery/{15.PNG β†’ 3.jpg} RENAMED
File without changes