weihongliang commited on
Commit
4341430
·
verified ·
1 Parent(s): 5f1aa2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -336,7 +336,7 @@ def process_image(image, question, confidence_threshold, examples=None):
336
  en_intros.append(intro)
337
  else:
338
  print(links)
339
- en_wiki_pedia_links.append("No English Wikipedia link found")
340
  en_intros.append(f"This person is {name}.")
341
  if not names:
342
  if os.path.exists(temp_image_path):
@@ -388,7 +388,7 @@ def process_image(image, question, confidence_threshold, examples=None):
388
  def create_interface():
389
  # Define examples - with proper wikidata URLs
390
  examples = [
391
- ["./musk_and_huang.jpg", "What is Jensen doing?",
392
  ['Jen-Hsun Huang', 'Elon Musk'],
393
  [{'Width': 0.14037726819515228, 'Height': 0.20855841040611267, 'Left': 0.20549052953720093, 'Top': 0.05287889018654823},
394
  {'Width': 0.07806053012609482, 'Height': 0.12407417595386505, 'Left': 0.7048892974853516, 'Top': 0.12597641348838806}],
 
336
  en_intros.append(intro)
337
  else:
338
  print(links)
339
+ en_wiki_pedia_links.append("Failed to get wiki information.")
340
  en_intros.append(f"This person is {name}.")
341
  if not names:
342
  if os.path.exists(temp_image_path):
 
388
  def create_interface():
389
  # Define examples - with proper wikidata URLs
390
  examples = [
391
+ ["./musk_and_huang.jpg", "What is Jen-Hsun doing?",
392
  ['Jen-Hsun Huang', 'Elon Musk'],
393
  [{'Width': 0.14037726819515228, 'Height': 0.20855841040611267, 'Left': 0.20549052953720093, 'Top': 0.05287889018654823},
394
  {'Width': 0.07806053012609482, 'Height': 0.12407417595386505, 'Left': 0.7048892974853516, 'Top': 0.12597641348838806}],