Spaces:
Runtime error
Runtime error
Commit
·
33d0c27
1
Parent(s):
a5e5bde
Load data
Browse files
app.py
CHANGED
|
@@ -1,11 +1,14 @@
|
|
| 1 |
import gradio as gr
|
|
|
|
| 2 |
|
| 3 |
|
|
|
|
|
|
|
| 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
|
| 9 |
gr.components.Image()
|
| 10 |
# for plotly it should follow this: https://gradio.app/plot-component-for-maps/
|
| 11 |
# trade_plot = gr.Plot()
|
|
@@ -24,4 +27,5 @@ with gr.Blocks() as demo:
|
|
| 24 |
# show trade box history in a table or something
|
| 25 |
gr.components.Textbox(value="Some history? Need to decide how to show bot history", label="History", interactive=True)
|
| 26 |
|
| 27 |
-
demo.launch()
|
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
import pandas as pd
|
| 3 |
|
| 4 |
|
| 5 |
+
data = pd.read_csv("./data/EURUSD_Candlestick_1_M_BID_01.01.2021-04.02.2023.csv")
|
| 6 |
+
|
| 7 |
# The UI of the demo defines here.
|
| 8 |
with gr.Blocks() as demo:
|
| 9 |
gr.Markdown("Auto trade bot.")
|
| 10 |
|
| 11 |
+
gr.Markdown("Candle plots may goes here.")
|
| 12 |
gr.components.Image()
|
| 13 |
# for plotly it should follow this: https://gradio.app/plot-component-for-maps/
|
| 14 |
# trade_plot = gr.Plot()
|
|
|
|
| 27 |
# show trade box history in a table or something
|
| 28 |
gr.components.Textbox(value="Some history? Need to decide how to show bot history", label="History", interactive=True)
|
| 29 |
|
| 30 |
+
demo.launch()
|
| 31 |
+
|