bunyaminergen commited on
Commit
2fad00e
·
1 Parent(s): c7defd6
Files changed (2) hide show
  1. .gitattributes +3 -0
  2. app.py +13 -1
.gitattributes CHANGED
@@ -33,3 +33,6 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
 
 
 
 
33
  *.zip filter=lfs diff=lfs merge=lfs -text
34
  *.zst filter=lfs diff=lfs merge=lfs -text
35
  *tfevents* filter=lfs diff=lfs merge=lfs -text
36
+ # Callytics Demo
37
+ *.mp3 filter=lfs diff=lfs merge=lfs -text
38
+ *.wav filter=lfs diff=lfs merge=lfs -text
app.py CHANGED
@@ -67,7 +67,6 @@ async def main(audio_file_path: str):
67
  llm_result_handler = LLMResultHandler()
68
  cleaner = Cleaner()
69
  formatter = Formatter()
70
- audio_feature_extractor = Audio(audio_file_path)
71
 
72
  # Step 1: Detect Dialogue
73
  has_dialogue = dialogue_detector.process(audio_file_path)
@@ -269,6 +268,19 @@ with gr.Blocks() as demo:
269
 
270
  output_display = gr.JSON(label="Final Output (JSON)")
271
 
 
 
 
 
 
 
 
 
 
 
 
 
 
272
 
273
  def process_and_show_tables(uploaded_audio):
274
  """
 
67
  llm_result_handler = LLMResultHandler()
68
  cleaner = Cleaner()
69
  formatter = Formatter()
 
70
 
71
  # Step 1: Detect Dialogue
72
  has_dialogue = dialogue_detector.process(audio_file_path)
 
268
 
269
  output_display = gr.JSON(label="Final Output (JSON)")
270
 
271
+ gr.Examples(
272
+ examples=[
273
+ ["examples/tr.wav"],
274
+ [".data/example/en.mp3"],
275
+ ["examples/jp.wav"],
276
+ ["examples/fr.wav"],
277
+ ["examples/de.wav"],
278
+ ],
279
+ inputs=audio_input,
280
+ outputs=[utterance_table, file_table, output_display],
281
+ label="Example Audios"
282
+ )
283
+
284
 
285
  def process_and_show_tables(uploaded_audio):
286
  """