Spaces:
Runtime error
Runtime error
Commit
·
16d35f5
1
Parent(s):
273fead
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ import time
|
|
4 |
import requests
|
5 |
|
6 |
list_stack=[]
|
7 |
-
api_url='http://
|
8 |
|
9 |
def get_transcription_whissper_api(audio,api_url=api_url):
|
10 |
audio_file = open(audio, 'rb')
|
@@ -182,8 +182,8 @@ with block:
|
|
182 |
label="Input voice",
|
183 |
source="microphone",
|
184 |
type="filepath",
|
185 |
-
streaming=True
|
186 |
-
|
187 |
|
188 |
)
|
189 |
audio_file_upload = gr.Audio(
|
|
|
4 |
import requests
|
5 |
|
6 |
list_stack=[]
|
7 |
+
api_url='http://2961-34-125-120-237.ngrok.io/upload'
|
8 |
|
9 |
def get_transcription_whissper_api(audio,api_url=api_url):
|
10 |
audio_file = open(audio, 'rb')
|
|
|
182 |
label="Input voice",
|
183 |
source="microphone",
|
184 |
type="filepath",
|
185 |
+
# streaming=True
|
186 |
+
every=4
|
187 |
|
188 |
)
|
189 |
audio_file_upload = gr.Audio(
|