Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -147,7 +147,8 @@ def process_audio_file(file):
|
|
| 147 |
return data
|
| 148 |
|
| 149 |
#def transcribe(audio, state = "", im4 = "", file = ""):
|
| 150 |
-
def transcribe(audio, state = "", im4 = None, file = None):
|
|
|
|
| 151 |
# Grant additional context
|
| 152 |
# time.sleep(1)
|
| 153 |
if state is None:
|
|
@@ -173,8 +174,8 @@ iface = gr.Interface(
|
|
| 173 |
inputs=[
|
| 174 |
gr.Audio(source="microphone", type='filepath', streaming=True),
|
| 175 |
"state",
|
| 176 |
-
gr.Image(label="Webcam", source="webcam"),
|
| 177 |
-
gr.File(label="File"),
|
| 178 |
],
|
| 179 |
outputs=[
|
| 180 |
"textbox",
|
|
|
|
| 147 |
return data
|
| 148 |
|
| 149 |
#def transcribe(audio, state = "", im4 = "", file = ""):
|
| 150 |
+
#def transcribe(audio, state = "", im4 = None, file = None):
|
| 151 |
+
def transcribe(audio, state = ""): # two parms - had been testing video and file inputs at same time.
|
| 152 |
# Grant additional context
|
| 153 |
# time.sleep(1)
|
| 154 |
if state is None:
|
|
|
|
| 174 |
inputs=[
|
| 175 |
gr.Audio(source="microphone", type='filepath', streaming=True),
|
| 176 |
"state",
|
| 177 |
+
#gr.Image(label="Webcam", source="webcam"),
|
| 178 |
+
#gr.File(label="File"),
|
| 179 |
],
|
| 180 |
outputs=[
|
| 181 |
"textbox",
|