Fangzhi Xu
commited on
Commit
·
13b7d2e
1
Parent(s):
f0b4ab9
app.py
CHANGED
|
@@ -3,12 +3,14 @@ import numpy as np
|
|
| 3 |
import matplotlib.pyplot as plt
|
| 4 |
import pandas as pd
|
| 5 |
import math
|
| 6 |
-
if 'env' not in st.session_state:
|
| 7 |
-
st.session_state.env = None
|
| 8 |
-
if 'config' not in st.session_state:
|
| 9 |
-
st.session_state.config = None
|
| 10 |
-
if 'history' not in st.session_state:
|
| 11 |
-
st.
|
|
|
|
|
|
|
| 12 |
|
| 13 |
|
| 14 |
|
|
|
|
| 3 |
import matplotlib.pyplot as plt
|
| 4 |
import pandas as pd
|
| 5 |
import math
|
| 6 |
+
if 'env' not in st.session_state:
|
| 7 |
+
st.session_state.env = None
|
| 8 |
+
if 'config' not in st.session_state:
|
| 9 |
+
st.session_state.config = None
|
| 10 |
+
if 'history' not in st.session_state:
|
| 11 |
+
st.session_state.history = []
|
| 12 |
+
if 'total_reward' not in st.session_state:
|
| 13 |
+
st.session_state.total_reward = 0.0
|
| 14 |
|
| 15 |
|
| 16 |
|