yumyeom commited on
Commit
5ebbb35
1 Parent(s): 5f75262

app.py & etc 수정

Browse files
.ipynb_checkpoints/app-checkpoint.py CHANGED
@@ -4,6 +4,7 @@
4
  from transformers import AutoModelForAudioClassification
5
  from transformers import AutoFeatureExtractor
6
  from transformers import pipeline
 
7
  import gradio as gr
8
  import torch
9
 
@@ -35,7 +36,7 @@ def gaepago_fn(tmp_audio_dir):
35
  # Main
36
  main_api = gr.Blocks()
37
 
38
- with demo:
39
  gr.Markdown("## 8J Gaepago Demo(with CPU)")
40
  with gr.Row():
41
  audio = gr.Audio(source="microphone", type="filepath"
@@ -44,6 +45,6 @@ with demo:
44
  b1 = gr.Button("강아지 언어 번역!")
45
 
46
  b1.click(gaepago_fn, inputs=audio, outputs=transcription)
47
- examples = gr.Examples(examples=example_list,
48
- inputs=[audio])
49
- main_api.launch(share=True)
 
4
  from transformers import AutoModelForAudioClassification
5
  from transformers import AutoFeatureExtractor
6
  from transformers import pipeline
7
+ from datasets import Dataset
8
  import gradio as gr
9
  import torch
10
 
 
36
  # Main
37
  main_api = gr.Blocks()
38
 
39
+ with main_api:
40
  gr.Markdown("## 8J Gaepago Demo(with CPU)")
41
  with gr.Row():
42
  audio = gr.Audio(source="microphone", type="filepath"
 
45
  b1 = gr.Button("강아지 언어 번역!")
46
 
47
  b1.click(gaepago_fn, inputs=audio, outputs=transcription)
48
+ # examples = gr.Examples(examples=example_list,
49
+ # inputs=[audio])
50
+ main_api.launch()
app.py CHANGED
@@ -4,6 +4,7 @@
4
  from transformers import AutoModelForAudioClassification
5
  from transformers import AutoFeatureExtractor
6
  from transformers import pipeline
 
7
  import gradio as gr
8
  import torch
9
 
 
4
  from transformers import AutoModelForAudioClassification
5
  from transformers import AutoFeatureExtractor
6
  from transformers import pipeline
7
+ from datasets import Dataset
8
  import gradio as gr
9
  import torch
10
 
requirements.txt CHANGED
@@ -11,6 +11,8 @@ click==8.1.3
11
  cmake==3.26.4
12
  contourpy==1.1.0
13
  cycler==0.11.0
 
 
14
  exceptiongroup==1.1.1
15
  fastapi==0.97.0
16
  ffmpy==0.3.0
@@ -38,6 +40,7 @@ mdit-py-plugins==0.3.3
38
  mdurl==0.1.2
39
  mpmath==1.3.0
40
  multidict==6.0.4
 
41
  networkx==3.1
42
  numpy==1.24.3
43
  nvidia-cublas-cu11==11.10.3.66
@@ -56,6 +59,7 @@ packaging==23.1
56
  pandas==2.0.2
57
  Pillow==9.5.0
58
  pkgutil_resolve_name==1.3.10
 
59
  pydantic==1.10.9
60
  pydub==0.25.1
61
  Pygments==2.15.1
@@ -85,5 +89,6 @@ uc-micro-py==1.0.2
85
  urllib3==2.0.3
86
  uvicorn==0.22.0
87
  websockets==11.0.3
 
88
  yarl==1.9.2
89
  zipp==3.15.0
 
11
  cmake==3.26.4
12
  contourpy==1.1.0
13
  cycler==0.11.0
14
+ datasets==2.13.0
15
+ dill==0.3.6
16
  exceptiongroup==1.1.1
17
  fastapi==0.97.0
18
  ffmpy==0.3.0
 
40
  mdurl==0.1.2
41
  mpmath==1.3.0
42
  multidict==6.0.4
43
+ multiprocess==0.70.14
44
  networkx==3.1
45
  numpy==1.24.3
46
  nvidia-cublas-cu11==11.10.3.66
 
59
  pandas==2.0.2
60
  Pillow==9.5.0
61
  pkgutil_resolve_name==1.3.10
62
+ pyarrow==12.0.1
63
  pydantic==1.10.9
64
  pydub==0.25.1
65
  Pygments==2.15.1
 
89
  urllib3==2.0.3
90
  uvicorn==0.22.0
91
  websockets==11.0.3
92
+ xxhash==3.2.0
93
  yarl==1.9.2
94
  zipp==3.15.0