Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,10 @@ def stars(n):
|
|
11 |
plt.axis('off')
|
12 |
return plt.gcf()
|
13 |
|
14 |
-
iface = gr.Interface(
|
|
|
|
|
|
|
|
|
15 |
|
16 |
iface.launch()
|
|
|
11 |
plt.axis('off')
|
12 |
return plt.gcf()
|
13 |
|
14 |
+
iface = gr.Interface(
|
15 |
+
fn=stars,
|
16 |
+
inputs=gr.Slider(1, 100, 1), # Updated to use gr.Slider
|
17 |
+
outputs="plot"
|
18 |
+
)
|
19 |
|
20 |
iface.launch()
|