awacke1 commited on
Commit
d0ab6ec
·
1 Parent(s): 870ac94

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -5
app.py CHANGED
@@ -191,11 +191,8 @@ def game_ui():
191
  with open('game_state.txt', 'r') as f:
192
  lines = f.readlines()
193
  headers = [header.strip() for header in lines[0].strip().split(',')]
194
- data =
195
- [
196
- [eval(cell) if cell.isdigit() else cell for cell in line.strip().split(',')]
197
- for line in lines[1:]
198
- ]
199
  st.dataframe(data, columns=headers)
200
 
201
  # Add download button for game history
 
191
  with open('game_state.txt', 'r') as f:
192
  lines = f.readlines()
193
  headers = [header.strip() for header in lines[0].strip().split(',')]
194
+ data =[ [eval(cell) if cell.isdigit() else cell for cell in line.strip().split(',')]
195
+ for line in lines[1:] ]
 
 
 
196
  st.dataframe(data, columns=headers)
197
 
198
  # Add download button for game history