KaiChen1998 commited on
Commit
9a01cc0
·
1 Parent(s): 98cf3fb

fix example paths

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -451,27 +451,27 @@ def build_demo(embed_mode, cur_dir=None):
451
  with gr.Row():
452
  with gr.Column(scale=9):
453
  gr.Examples(examples=[
454
- [f"{cur_dir}/examples/emo-speech/what_is_your_name.wav"],
455
- [f"{cur_dir}/examples/emo-speech/parent.wav"],
456
- [f"{cur_dir}/examples/emo-speech/I_am_so_sad.wav"],
457
- [f"{cur_dir}/examples/emo-speech/wedding(CH).wav"],
458
  ], inputs=[audio_input], label='Audio Examples')
459
 
460
  with gr.Row(equal_height=True):
461
  gr.Examples(examples=[
462
- [f"{cur_dir}/examples/image-text/example_1.png", "Why is this image funny?"],
463
- [f"{cur_dir}/examples/image-text/example_2.png", "First please perform reasoning, and think step by step to provide best answer to the following question:\n\nWhat is the original price for pork belly before discount?"],
464
- [f"{cur_dir}/examples/image-text/example_3.png", "Convert this table to markdown format."],
465
  ], inputs=[imagebox, textbox], label='Image Examples')
466
  gr.Examples(examples=[
467
- [f"{cur_dir}/examples/emo-speech/write_a_poem.jfif", f"{cur_dir}/examples/emo-speech/write_a_poem.wav"],
468
- [f"{cur_dir}/examples/emo-speech/I_am_happy_get_my_offer.webp", f"{cur_dir}/examples/emo-speech/I_am_happy_get_my_offer.wav"],
469
- [f"{cur_dir}/examples/structure-speech/names_of_main_actors.jpg", f"{cur_dir}/examples/structure-speech/names_of_main_actors.wav"],
470
  ], inputs=[imagebox, audio_input], label='Omni Examples 1')
471
  gr.Examples(examples=[
472
- [f"{cur_dir}/examples/structure-speech/how_to_save_water.png", f"{cur_dir}/examples/structure-speech/how_to_save_water.wav"],
473
- [f"{cur_dir}/examples/structure-speech/internet_coverage.png", f"{cur_dir}/examples/structure-speech/internet_coverage.wav"],
474
- [f"{cur_dir}/examples/structure-speech/how_to_use_website.PNG", f"{cur_dir}/examples/structure-speech/how_to_use_website.wav"],
475
  ], inputs=[imagebox, audio_input], label='Omni Examples 2')
476
 
477
  if not embed_mode:
 
451
  with gr.Row():
452
  with gr.Column(scale=9):
453
  gr.Examples(examples=[
454
+ ["./examples/emo-speech/what_is_your_name.wav"],
455
+ ["./examples/emo-speech/parent.wav"],
456
+ ["./examples/emo-speech/I_am_so_sad.wav"],
457
+ ["./examples/emo-speech/wedding(CH).wav"],
458
  ], inputs=[audio_input], label='Audio Examples')
459
 
460
  with gr.Row(equal_height=True):
461
  gr.Examples(examples=[
462
+ ["./examples/image-text/example_1.png", "Why is this image funny?"],
463
+ ["./examples/image-text/example_2.png", "First please perform reasoning, and think step by step to provide best answer to the following question:\n\nWhat is the original price for pork belly before discount?"],
464
+ ["./examples/image-text/example_3.png", "Convert this table to markdown format."],
465
  ], inputs=[imagebox, textbox], label='Image Examples')
466
  gr.Examples(examples=[
467
+ ["./examples/emo-speech/write_a_poem.jfif", "./examples/emo-speech/write_a_poem.wav"],
468
+ ["./examples/emo-speech/I_am_happy_get_my_offer.webp", "./examples/emo-speech/I_am_happy_get_my_offer.wav"],
469
+ ["./examples/structure-speech/names_of_main_actors.jpg", "./examples/structure-speech/names_of_main_actors.wav"],
470
  ], inputs=[imagebox, audio_input], label='Omni Examples 1')
471
  gr.Examples(examples=[
472
+ ["./examples/structure-speech/how_to_save_water.png", "./examples/structure-speech/how_to_save_water.wav"],
473
+ ["./examples/structure-speech/internet_coverage.png", "./examples/structure-speech/internet_coverage.wav"],
474
+ ["./examples/structure-speech/how_to_use_website.PNG", "./examples/structure-speech/how_to_use_website.wav"],
475
  ], inputs=[imagebox, audio_input], label='Omni Examples 2')
476
 
477
  if not embed_mode: