storresbusquets commited on
Commit
b0808a3
1 Parent(s): d67e92c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -542,6 +542,9 @@ with block as demo:
542
  outputs=[summary, keywords, label, wordcloud_image],
543
  )
544
 
 
 
 
545
  with block:
546
  gr.Markdown("### Video Examples")
547
  gr.Examples(["https://www.youtube.com/shorts/xDNzz8yAH7I",
@@ -553,7 +556,8 @@ with block:
553
  gr.Examples([[os.path.join(os.path.dirname(__file__),"audios/EnglishLecture.mp4")]], inputs=audio_file)
554
 
555
  gr.Markdown("### Text Examples")
556
- gr.Examples([[os.path.join(os.path.dirname(__file__),"texts/India_Canada.txt")]],inputs=article)
 
557
 
558
  gr.Markdown("### About the app:")
559
 
 
542
  outputs=[summary, keywords, label, wordcloud_image],
543
  )
544
 
545
+ with open(os.path.join(os.path.dirname(__file__), "texts/India_Canada.txt"), "r") as file:
546
+ text_example_content = file.read()
547
+
548
  with block:
549
  gr.Markdown("### Video Examples")
550
  gr.Examples(["https://www.youtube.com/shorts/xDNzz8yAH7I",
 
556
  gr.Examples([[os.path.join(os.path.dirname(__file__),"audios/EnglishLecture.mp4")]], inputs=audio_file)
557
 
558
  gr.Markdown("### Text Examples")
559
+ gr.Examples([[text_example_content]], inputs=article)
560
+ # gr.Examples([[os.path.join(os.path.dirname(__file__),"texts/India_Canada.txt")]],inputs=article)
561
 
562
  gr.Markdown("### About the app:")
563