clr commited on
Commit
37025f6
·
1 Parent(s): 98178bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -57,18 +57,17 @@ def f1(langname,lang_aligner):
57
  df = corpora.ds_f
58
 
59
 
60
- fig = plt.figure(figsize=(10,4))
61
- plt.axline((0,0),slope=1,color="darkgray")
62
- plt.xlabel("Vowel length (ms)")
63
- plt.ylabel("Consonant length (ms)")
64
 
65
  ds = df.sample()
66
  #print([th for th in ds.sample()])
67
- print(ds['audio'])
68
- print(ds['normalized_text'])
69
 
70
- #return graph.align_and_graph(wav_path, transcript,lang_aligner)
71
- return(fig)
72
 
73
 
74
  bl = gr.Blocks()
 
57
  df = corpora.ds_f
58
 
59
 
60
+ #fig = plt.figure(figsize=(10,4))
61
+ #plt.axline((0,0),slope=1,color="darkgray")
62
+ #plt.xlabel("Vowel length (ms)")
63
+ #plt.ylabel("Consonant length (ms)")
64
 
65
  ds = df.sample()
66
  #print([th for th in ds.sample()])
67
+ sound_path = ds['audio']['path']
68
+ transcript = ds['normalized_text']
69
 
70
+ return graph.align_and_graph(sound_path,transcript,lang_aligner)
 
71
 
72
 
73
  bl = gr.Blocks()