cahya commited on
Commit
ae5e6f4
1 Parent(s): eedab3c

add audio files as examples

Browse files
Files changed (4) hide show
  1. app.py +2 -0
  2. data/JFK.mp3 +0 -0
  3. data/Jokowi - 2022.mp3 +0 -0
  4. data/Soekarno - 1963.mp3 +0 -0
app.py CHANGED
@@ -84,6 +84,8 @@ with gr.Blocks() as blocks:
84
  text_source = gr.Textbox(label="Source Language")
85
  text_target = gr.Textbox(label="Target Language")
86
  audio = gr.Audio(label="Target Audio", interactive=False)
 
 
87
  memory = psutil.virtual_memory()
88
  gr.Markdown(info)
89
  system_status = info = f"""
 
84
  text_source = gr.Textbox(label="Source Language")
85
  text_target = gr.Textbox(label="Target Language")
86
  audio = gr.Audio(label="Target Audio", interactive=False)
87
+ examples = gr.Examples(examples=["data/Jokowi - 2022.mp3", "data/Soekarno - 1963.mp3", "data/JFK.mp3"],
88
+ label="Examples", inputs=[audio_upload])
89
  memory = psutil.virtual_memory()
90
  gr.Markdown(info)
91
  system_status = info = f"""
data/JFK.mp3 ADDED
Binary file (223 kB). View file
 
data/Jokowi - 2022.mp3 ADDED
Binary file (590 kB). View file
 
data/Soekarno - 1963.mp3 ADDED
Binary file (573 kB). View file