Dabs commited on
Commit
de2b581
·
verified ·
1 Parent(s): c5ae861

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -11,6 +11,10 @@ def stars(n):
11
  plt.axis('off')
12
  return plt.gcf()
13
 
14
- iface = gr.Interface(stars, gr.inputs.Slider(1, 100, 1), "plot")
 
 
 
 
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()