datnth1709 commited on
Commit
bcfdba7
1 Parent(s): 8e6bdf2

realtime translate

Browse files
Files changed (1) hide show
  1. app.py +11 -12
app.py CHANGED
@@ -113,16 +113,15 @@ vi_example_text = ["Có phải bạn đang muốn tìm mua nhà ở ngoại ô t
113
  "Nếu như một câu nói có thể khiến em vui."]
114
  vi_example_voice =[['vi_speech_01.wav'], ['vi_speech_02.wav'], ['vi_speech_03.wav']]
115
 
116
- with gr.TabItem("Vi-En Realtime Translation"):
117
- gr.Interface(
118
- fn=transcribe_vi_1,
119
- inputs=[
120
- gr.Audio(source="microphone", label="Input Vietnamese Audio", type="file", streaming=True),
121
- "state",
122
- ],
123
- outputs= [
124
- "text",
125
- "state",
126
 
127
- ],
128
- live=True).launch()
 
113
  "Nếu như một câu nói có thể khiến em vui."]
114
  vi_example_voice =[['vi_speech_01.wav'], ['vi_speech_02.wav'], ['vi_speech_03.wav']]
115
 
116
+ gr.Interface(
117
+ fn=transcribe_vi_1,
118
+ inputs=[
119
+ gr.Audio(source="microphone", label="Input Vietnamese Audio", type="file", streaming=True),
120
+ "state",
121
+ ],
122
+ outputs= [
123
+ "text",
124
+ "state",
 
125
 
126
+ ],
127
+ live=True).launch()