Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,8 +10,8 @@ def plot_beta(alpha, beta):
|
|
| 10 |
plt.ylim(0, 4)
|
| 11 |
return plt
|
| 12 |
|
| 13 |
-
s1 =
|
| 14 |
-
s2 =
|
| 15 |
|
| 16 |
iface = gr.Interface(fn=plot_beta, inputs=[s1, s2], outputs="image")
|
| 17 |
iface.launch()
|
|
|
|
| 10 |
plt.ylim(0, 4)
|
| 11 |
return plt
|
| 12 |
|
| 13 |
+
s1 = gr.inputs.Slider(minimum=0, maximum=5, step=0.1, default=2, label=None)
|
| 14 |
+
s2 = gr.inputs.Slider(minimum=0, maximum=5, step=0.1, default=2, label=None)
|
| 15 |
|
| 16 |
iface = gr.Interface(fn=plot_beta, inputs=[s1, s2], outputs="image")
|
| 17 |
iface.launch()
|