Spaces:
Running
on
Zero
Running
on
Zero
Commit
·
c0c2770
1
Parent(s):
84d025d
- .gradio/cached_examples/16/indices.csv +1 -0
- .gradio/cached_examples/16/log.csv +2 -0
- app.py +13 -1
.gradio/cached_examples/16/indices.csv
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
0
|
.gradio/cached_examples/16/log.csv
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
component 0,timestamp
|
2 |
+
Ka ކައެއް ބުނެދޭ އަޑު އަހަމާހޭ ނޭފަތް ބުނެޔޭ ވަސް ބަލަމާހޭ ތުންފަތް ބުނެޔޭ އެހިނި ތުންވެލަމުން އަތްތައް ގުޅުވާ އެކު އުޅެމާހޭ ލޯ ބުންޏޭ ބަލަމުން ބަލަމުންދާ The one who is in love with the are the birds. They are the birds.,2025-05-16 18:20:28.737297
|
app.py
CHANGED
@@ -54,6 +54,17 @@ generate_kwargs = {
|
|
54 |
#"return_timestamps"=True
|
55 |
}
|
56 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
@spaces.GPU
|
58 |
def transcribe(audio_input):
|
59 |
if audio_input is None:
|
@@ -98,10 +109,11 @@ file_transcribe = gr.Interface(
|
|
98 |
description=(
|
99 |
"Upload an audio file or record using your microphone to transcribe."
|
100 |
),
|
101 |
-
|
102 |
examples=[
|
103 |
["sample.mp3"]
|
104 |
],
|
|
|
105 |
)
|
106 |
|
107 |
with demo:
|
|
|
54 |
#"return_timestamps"=True
|
55 |
}
|
56 |
|
57 |
+
# IMPORTANT: Fix for forced_decoder_ids error
|
58 |
+
# Remove forced_decoder_ids from the model's generation config
|
59 |
+
if hasattr(model.generation_config, 'forced_decoder_ids'):
|
60 |
+
print("Removing forced_decoder_ids from generation config")
|
61 |
+
model.generation_config.forced_decoder_ids = None
|
62 |
+
|
63 |
+
# Also check if it's in the model config
|
64 |
+
if hasattr(model.config, 'forced_decoder_ids'):
|
65 |
+
print("Removing forced_decoder_ids from model config")
|
66 |
+
delattr(model.config, 'forced_decoder_ids')
|
67 |
+
|
68 |
@spaces.GPU
|
69 |
def transcribe(audio_input):
|
70 |
if audio_input is None:
|
|
|
109 |
description=(
|
110 |
"Upload an audio file or record using your microphone to transcribe."
|
111 |
),
|
112 |
+
flagging_mode="never",
|
113 |
examples=[
|
114 |
["sample.mp3"]
|
115 |
],
|
116 |
+
api_name=False
|
117 |
)
|
118 |
|
119 |
with demo:
|