Spaces:
Runtime error
Runtime error
Merge branch 'main' of https://huggingface.co/spaces/ATB/AI-trade-bot-demo
Browse files- .gitignore +2 -1
- app.py +5 -3
- rl_agent/__init__.py +0 -0
.gitignore
CHANGED
@@ -1 +1,2 @@
|
|
1 |
-
*.pyc
|
|
|
|
1 |
+
*.pyc
|
2 |
+
.vscode
|
app.py
CHANGED
@@ -3,9 +3,9 @@ import pandas as pd
|
|
3 |
import plotly.graph_objects as go
|
4 |
from plotly.subplots import make_subplots
|
5 |
|
6 |
-
from env import Environment
|
7 |
-
from policy import Policy
|
8 |
-
from utils import myOptimizer
|
9 |
|
10 |
import torch
|
11 |
from collections import OrderedDict
|
@@ -202,6 +202,8 @@ with gr.Blocks() as demo:
|
|
202 |
hold_btn = gr.components.Button("Hold", label="Hold", interactive=True, inputs=[amount])
|
203 |
with gr.Column():
|
204 |
gr.Markdown("Trade bot history.")
|
|
|
|
|
205 |
# show trade box history in a table or something
|
206 |
gr.components.Textbox(value="Some history? Need to decide how to show bot history", label="History", interactive=True)
|
207 |
|
|
|
3 |
import plotly.graph_objects as go
|
4 |
from plotly.subplots import make_subplots
|
5 |
|
6 |
+
from rl_agent.env import Environment
|
7 |
+
from rl_agent.policy import Policy
|
8 |
+
from rl_agent.utils import myOptimizer
|
9 |
|
10 |
import torch
|
11 |
from collections import OrderedDict
|
|
|
202 |
hold_btn = gr.components.Button("Hold", label="Hold", interactive=True, inputs=[amount])
|
203 |
with gr.Column():
|
204 |
gr.Markdown("Trade bot history.")
|
205 |
+
df_data_train = pd.DataFrame(columns=["Action", "Amount", "Profit"])
|
206 |
+
trade_bot_table = gr.Dataframe(df_data_train)
|
207 |
# show trade box history in a table or something
|
208 |
gr.components.Textbox(value="Some history? Need to decide how to show bot history", label="History", interactive=True)
|
209 |
|
rl_agent/__init__.py
ADDED
File without changes
|