Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -182,11 +182,15 @@ def spread_segments_to_players(segment_paths):
|
|
182 |
with gr.Blocks(css="style.css") as demo:
|
183 |
gr.Markdown("# Application de Découpe Audio (jusqu'à 20 segments)")
|
184 |
|
|
|
185 |
metadata_state = gr.State(init_metadata_state())
|
186 |
|
187 |
-
|
188 |
-
|
|
|
|
|
189 |
|
|
|
190 |
raw_transcription = gr.Textbox(
|
191 |
label="Transcription (Whisper)",
|
192 |
placeholder="Le texte apparaîtra ici après chargement.",
|
|
|
182 |
with gr.Blocks(css="style.css") as demo:
|
183 |
gr.Markdown("# Application de Découpe Audio (jusqu'à 20 segments)")
|
184 |
|
185 |
+
# State global pour stocker la metadata (liste de dict)
|
186 |
metadata_state = gr.State(init_metadata_state())
|
187 |
|
188 |
+
# Étape 1 : Upload audio
|
189 |
+
with gr.Group():
|
190 |
+
gr.Markdown("### 1. Téléversez un fichier audio (MP3/WAV)")
|
191 |
+
audio_input = gr.Audio(source="upload", type="filepath", label="Fichier audio")
|
192 |
|
193 |
+
# Transcription brute
|
194 |
raw_transcription = gr.Textbox(
|
195 |
label="Transcription (Whisper)",
|
196 |
placeholder="Le texte apparaîtra ici après chargement.",
|