stzhao commited on
Commit
162d9b9
·
verified ·
1 Parent(s): a319ba7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +25 -13
app.py CHANGED
@@ -339,57 +339,69 @@ def create_demo():
339
  examples = [
340
  [
341
  "./examples/1.png",
342
- "From the information on that advertising board, what is the type of this shop?\nA. The shop is a yoga studio.\nB. The shop is a cafe.\nC. The shop is a seven-eleven.\nD. The shop is a milk tea shop."
 
343
  ],
344
  [
345
  "./examples/2.png",
346
- "What is the diagnosis for the abnormality seen in this image?\nA. Pulmonary embolism.\nB. Tuberculosis.\nC. COVID-19 infection.\nD. Influenza."
 
347
  ],
348
  [
349
  "./examples/3.png",
350
- "What is the color of the liquid contained in the glass on the table?\nA. The color of the liquid contained in the glass on the table is green.\nB. The color of the liquid contained in the glass on the table is transparent.\nC. The color of the liquid contained in the glass on the table is white.\nD. The color of the liquid contained in the glass on the table is orange."
 
351
  ],
352
  [
353
  "./examples/4.png",
354
- "Is the dog on the left or right side of the bicycle?\nA. The dog is on the right side of the bicycle.\nB. The dog is on the left side of the bicycle."
 
355
  ],
356
  [
357
  "./examples/5.png",
358
- "Is the kid with black shirt on the left or right side of the kid with blue shirt?\nA. The kid with black shirt is on the left side of the kid with blue shirt.\nB. The kid with black shirt is on the right side of the kid with blue shirt."
 
359
  ],
360
  [
361
  "./examples/6.png",
362
- "What can be observed in this image?\nA. Nerve entrapment.\nB. Musculoskeletal abnormality.\nC. Arteriovenous anomaly.\nD. Renal cyst."
 
363
  ],
364
  [
365
  "./examples/7.png",
366
- "What is the specific stage of cancer depicted in the image? A)Stage Ib, B)Stage IIIb, C)Stage IIc, D)Stage IIIa"
 
367
  ],
368
  [
369
  "./examples/8.png",
370
- "A gymnast jotted down the number of cartwheels she did each day. What is the mode of the numbers?"
 
371
  ],
372
  [
373
  "./examples/9.png",
374
- "Does Virginia have the highest value in the USA ?"
 
375
  ],
376
  [
377
  "./examples/10.png",
378
- "AB is the diameter of ⊙O, PA is tangent to ⊙O at point A, and PO intersects ⊙O at point C; connect BC, if ∠P = 40.0, then ∠B is equal to ()"
 
379
  ],
380
  [
381
  "./examples/11.png",
382
- "How many single-color paths go from C to A?"
 
383
  ],
384
  [
385
  "./examples/12.png",
386
- "There is a numerical converter, the principle of which is shown in the following diagram: When the input x=16, the output y equals."
 
387
  ],
388
  ]
389
 
390
  gr.Examples(
391
  examples,
392
- [image_input, question],
393
  label="Click any example to try it out!"
394
  )
395
 
 
339
  examples = [
340
  [
341
  "./examples/1.png",
342
+ "From the information on that advertising board, what is the type of this shop?\nA. The shop is a yoga studio.\nB. The shop is a cafe.\nC. The shop is a seven-eleven.\nD. The shop is a milk tea shop.",
343
+ ""
344
  ],
345
  [
346
  "./examples/2.png",
347
+ "What is the diagnosis for the abnormality seen in this image?\nA. Pulmonary embolism.\nB. Tuberculosis.\nC. COVID-19 infection.\nD. Influenza.",
348
+ ""
349
  ],
350
  [
351
  "./examples/3.png",
352
+ "What is the color of the liquid contained in the glass on the table?\nA. The color of the liquid contained in the glass on the table is green.\nB. The color of the liquid contained in the glass on the table is transparent.\nC. The color of the liquid contained in the glass on the table is white.\nD. The color of the liquid contained in the glass on the table is orange.",
353
+ ""
354
  ],
355
  [
356
  "./examples/4.png",
357
+ "Is the dog on the left or right side of the bicycle?\nA. The dog is on the right side of the bicycle.\nB. The dog is on the left side of the bicycle.",
358
+ ""
359
  ],
360
  [
361
  "./examples/5.png",
362
+ "Is the kid with black shirt on the left or right side of the kid with blue shirt?\nA. The kid with black shirt is on the left side of the kid with blue shirt.\nB. The kid with black shirt is on the right side of the kid with blue shirt.",
363
+ ""
364
  ],
365
  [
366
  "./examples/6.png",
367
+ "What can be observed in this image?\nA. Nerve entrapment.\nB. Musculoskeletal abnormality.\nC. Arteriovenous anomaly.\nD. Renal cyst.",
368
+ ""
369
  ],
370
  [
371
  "./examples/7.png",
372
+ "What is the specific stage of cancer depicted in the image? A)Stage Ib, B)Stage IIIb, C)Stage IIc, D)Stage IIIa",
373
+ ""
374
  ],
375
  [
376
  "./examples/8.png",
377
+ "A gymnast jotted down the number of cartwheels she did each day. What is the mode of the numbers?",
378
+ ""
379
  ],
380
  [
381
  "./examples/9.png",
382
+ "Does Virginia have the highest value in the USA ?",
383
+ ""
384
  ],
385
  [
386
  "./examples/10.png",
387
+ "AB is the diameter of ⊙O, PA is tangent to ⊙O at point A, and PO intersects ⊙O at point C; connect BC, if ∠P = 40.0, then ∠B is equal to ()",
388
+ ""
389
  ],
390
  [
391
  "./examples/11.png",
392
+ "How many single-color paths go from C to A?",
393
+ ""
394
  ],
395
  [
396
  "./examples/12.png",
397
+ "There is a numerical converter, the principle of which is shown in the following diagram: When the input x=16, the output y equals.",
398
+ ""
399
  ],
400
  ]
401
 
402
  gr.Examples(
403
  examples,
404
+ [image_input, question, answer],
405
  label="Click any example to try it out!"
406
  )
407