Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -107,8 +107,8 @@ def transcribe(audio, state = ""):
|
|
107 |
transcriptions = transcriptions[0]
|
108 |
transcriptions = transcriptions[0]
|
109 |
ret = store_message(transcriptions, state) # Save to dataset - uncomment to store into a dataset - hint you will need your HF_TOKEN
|
110 |
-
state = state + transcriptions + " "
|
111 |
-
return state, state
|
112 |
|
113 |
gr.Interface(
|
114 |
fn=transcribe,
|
@@ -118,8 +118,7 @@ gr.Interface(
|
|
118 |
],
|
119 |
outputs=[
|
120 |
"textbox",
|
121 |
-
"state"
|
122 |
-
"textbox",
|
123 |
],
|
124 |
layout="horizontal",
|
125 |
theme="huggingface",
|
|
|
107 |
transcriptions = transcriptions[0]
|
108 |
transcriptions = transcriptions[0]
|
109 |
ret = store_message(transcriptions, state) # Save to dataset - uncomment to store into a dataset - hint you will need your HF_TOKEN
|
110 |
+
state = state + transcriptions + " " + ret
|
111 |
+
return state, state
|
112 |
|
113 |
gr.Interface(
|
114 |
fn=transcribe,
|
|
|
118 |
],
|
119 |
outputs=[
|
120 |
"textbox",
|
121 |
+
"state"
|
|
|
122 |
],
|
123 |
layout="horizontal",
|
124 |
theme="huggingface",
|