Spaces:
Sleeping
Sleeping
fix mic bug
Browse files
app.py
CHANGED
@@ -75,7 +75,7 @@ with gr.Blocks() as demo:
|
|
75 |
|
76 |
def transcript(audio_input, youtube_input, radio):
|
77 |
if radio == "Audio":
|
78 |
-
txt = model(audio_input["text"]
|
79 |
else:
|
80 |
txt = youtube_to_text(youtube_input)
|
81 |
history_gpt.append(
|
@@ -85,7 +85,6 @@ with gr.Blocks() as demo:
|
|
85 |
+ txt,
|
86 |
}
|
87 |
)
|
88 |
-
print("tjrujf", txt)
|
89 |
return txt
|
90 |
|
91 |
btn.click(
|
|
|
75 |
|
76 |
def transcript(audio_input, youtube_input, radio):
|
77 |
if radio == "Audio":
|
78 |
+
txt = model(audio_input)["text"]
|
79 |
else:
|
80 |
txt = youtube_to_text(youtube_input)
|
81 |
history_gpt.append(
|
|
|
85 |
+ txt,
|
86 |
}
|
87 |
)
|
|
|
88 |
return txt
|
89 |
|
90 |
btn.click(
|