m-ric HF staff commited on
Commit
2eb8692
1 Parent(s): a7a4e14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -8
app.py CHANGED
@@ -1,7 +1,6 @@
1
  STYLE = """
2
- body {
3
- height: 100vh;
4
- width: 100vw;
5
  display: grid;
6
  align-items: center;
7
  }
@@ -147,9 +146,7 @@ def generate_markdown_table(scores, top_k=4, chosen_tokens=None):
147
 
148
 
149
  def display_tree(scores, sequences, beam_indices):
150
- display = """<body>
151
- <div class="container">
152
- <div class="row">
153
  <div class="tree">
154
  <ul>"""
155
  sequences = sequences.cpu().numpy()
@@ -181,8 +178,6 @@ def display_tree(scores, sequences, beam_indices):
181
  display += """
182
  </ul>
183
  </div>
184
- </div>
185
- </div>
186
  </body>
187
  """
188
  print(display)
 
1
  STYLE = """
2
+ .container {
3
+ width: 100%;
 
4
  display: grid;
5
  align-items: center;
6
  }
 
146
 
147
 
148
  def display_tree(scores, sequences, beam_indices):
149
+ display = """<div class="container">
 
 
150
  <div class="tree">
151
  <ul>"""
152
  sequences = sequences.cpu().numpy()
 
178
  display += """
179
  </ul>
180
  </div>
 
 
181
  </body>
182
  """
183
  print(display)