Peijie commited on
Commit
4d6998d
·
1 Parent(s): a5e5bde

Add time slider for time interval.

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -4,7 +4,9 @@ import gradio as gr
4
  # The UI of the demo defines here.
5
  with gr.Blocks() as demo:
6
  gr.Markdown("Auto trade bot.")
7
-
 
 
8
  gr.Markdown("Candle polts may goes here.")
9
  gr.components.Image()
10
  # for plotly it should follow this: https://gradio.app/plot-component-for-maps/
 
4
  # The UI of the demo defines here.
5
  with gr.Blocks() as demo:
6
  gr.Markdown("Auto trade bot.")
7
+ with gr.Row():
8
+ gr.Markdown("Trade data settings.")
9
+ time_slider = gr.components.Slider(minimum=1, maximum=20, value=5, label="Time interval", interactive=True)
10
  gr.Markdown("Candle polts may goes here.")
11
  gr.components.Image()
12
  # for plotly it should follow this: https://gradio.app/plot-component-for-maps/