Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ matplotlib.use('Agg')
|
|
7 |
import matplotlib.pyplot as plt
|
8 |
|
9 |
|
10 |
-
def f1(
|
11 |
fig = plt.figure(figsize=(10,4))
|
12 |
plt.axline((0,0),slope=1,color="darkgray")
|
13 |
plt.xlabel("Vowel length (ms)")
|
@@ -20,7 +20,7 @@ with bl:
|
|
20 |
|
21 |
pl1 = gr.Plot()
|
22 |
|
23 |
-
btn1.click(f1, [
|
24 |
|
25 |
|
26 |
if __name__ == "__main__":
|
|
|
7 |
import matplotlib.pyplot as plt
|
8 |
|
9 |
|
10 |
+
def f1():
|
11 |
fig = plt.figure(figsize=(10,4))
|
12 |
plt.axline((0,0),slope=1,color="darkgray")
|
13 |
plt.xlabel("Vowel length (ms)")
|
|
|
20 |
|
21 |
pl1 = gr.Plot()
|
22 |
|
23 |
+
btn1.click(f1, [], pl1)
|
24 |
|
25 |
|
26 |
if __name__ == "__main__":
|