clr commited on
Commit
40b6dea
·
1 Parent(s): a4ba584

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -8
app.py CHANGED
@@ -8,17 +8,21 @@ 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
-
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)
 
 
 
 
 
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)