Spaces:
Sleeping
Sleeping
Diego Salinas commited on
Update app.py
Browse files
app.py
CHANGED
|
@@ -26,9 +26,13 @@ def plot_portfolio():
|
|
| 26 |
# Return the image path
|
| 27 |
return image_path
|
| 28 |
|
|
|
|
|
|
|
|
|
|
| 29 |
# Define the Gradio interface
|
| 30 |
iface = gr.Interface(
|
| 31 |
fn=plot_portfolio,
|
|
|
|
| 32 |
outputs=[gr.Image()],
|
| 33 |
live=True,
|
| 34 |
)
|
|
|
|
| 26 |
# Return the image path
|
| 27 |
return image_path
|
| 28 |
|
| 29 |
+
# Define a placeholder input (Slider with 0-1 range)
|
| 30 |
+
placeholder_input = gr.Slider(0, 1, default=0, label='Placeholder Input')
|
| 31 |
+
|
| 32 |
# Define the Gradio interface
|
| 33 |
iface = gr.Interface(
|
| 34 |
fn=plot_portfolio,
|
| 35 |
+
inputs=placeholder_input,
|
| 36 |
outputs=[gr.Image()],
|
| 37 |
live=True,
|
| 38 |
)
|