yumyeom commited on
Commit
bbb642a
1 Parent(s): b5778d6

example 공유

Browse files
app.py CHANGED
@@ -40,6 +40,13 @@ def gaepago_fn(tmp_audio_dir):
40
  return predicted_label
41
 
42
  # Main
 
 
 
 
 
 
 
43
  main_api = gr.Blocks()
44
 
45
  with main_api:
@@ -51,6 +58,6 @@ with main_api:
51
  b1 = gr.Button("강아지 언어 번역!")
52
 
53
  b1.click(gaepago_fn, inputs=audio, outputs=transcription)
54
- # examples = gr.Examples(examples=example_list,
55
- # inputs=[audio])
56
  main_api.launch()
 
40
  return predicted_label
41
 
42
  # Main
43
+ example_list = ["./sample/bark_sample.wav"
44
+ ,"./sample/growling_sample.wav"
45
+ ,"./sample/howl_sample.wav"
46
+ ,"./sample/panting_sample.wav"
47
+ ,"./sample/whimper_sample.wav"
48
+ ]
49
+
50
  main_api = gr.Blocks()
51
 
52
  with main_api:
 
58
  b1 = gr.Button("강아지 언어 번역!")
59
 
60
  b1.click(gaepago_fn, inputs=audio, outputs=transcription)
61
+ examples = gr.Examples(examples=example_list, inputs=[audio])
62
+
63
  main_api.launch()
sample/bark_sample.wav ADDED
Binary file (441 kB). View file
 
sample/growling_sample.wav ADDED
Binary file (883 kB). View file
 
sample/howl_sample.wav ADDED
Binary file (883 kB). View file
 
sample/panting_sample.wav ADDED
Binary file (883 kB). View file
 
sample/whimper_sample.wav ADDED
Binary file (279 kB). View file