Woziii commited on
Commit
5d2686b
·
verified ·
1 Parent(s): 8ddc378

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
app.py CHANGED
@@ -182,15 +182,11 @@ 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
- # 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.Box():
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.",
 
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
+ gr.Markdown("### 1. Téléversez un fichier audio (MP3/WAV)")
188
+ audio_input = gr.Audio(source="upload", type="filepath", label="Fichier audio")
 
 
189
 
 
190
  raw_transcription = gr.Textbox(
191
  label="Transcription (Whisper)",
192
  placeholder="Le texte apparaîtra ici après chargement.",