clr commited on
Commit
23e5396
·
1 Parent(s): 5ec6795

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -8,25 +8,20 @@ import matplotlib.pyplot as plt
8
 
9
 
10
  def f1(ignore):
11
- fig = plt.figure(figsize=(6,5))
12
  plt.axline((0,0),slope=1,color="darkgray")
13
  plt.xlabel("Vowel length (ms)")
14
  plt.ylabel("Consonant length (ms)")
15
  return(fig)
16
- #return "a box"
17
 
18
  bl = gr.Blocks()
19
  with bl:
20
- btn1 = gr.Button(value="The random prosody button")
21
 
22
  pl1 = gr.Plot()
23
 
24
  btn1.click(f1, [btn1], pl1)
25
 
26
- output_box = gr.Textbox(label="Forced alignment output")
27
-
28
- #btn1.click(f1, [output_box], output_box)
29
-
30
 
31
  if __name__ == "__main__":
32
  bl.launch()
 
8
 
9
 
10
  def f1(ignore):
11
+ fig = plt.figure(figsize=(10,4))
12
  plt.axline((0,0),slope=1,color="darkgray")
13
  plt.xlabel("Vowel length (ms)")
14
  plt.ylabel("Consonant length (ms)")
15
  return(fig)
 
16
 
17
  bl = gr.Blocks()
18
  with bl:
19
+ btn1 = gr.Button(value="The random prosody button",full_width=False, size="sm")
20
 
21
  pl1 = gr.Plot()
22
 
23
  btn1.click(f1, [btn1], pl1)
24
 
 
 
 
 
25
 
26
  if __name__ == "__main__":
27
  bl.launch()