Victoria Slocum commited on
Commit
7991260
1 Parent(s): 0a6df83

fix: scroll on depen graph

Browse files
Files changed (1) hide show
  1. app.py +10 -9
app.py CHANGED
@@ -164,15 +164,16 @@ with demo:
164
  with gr.Column():
165
  gr.Markdown("")
166
  button = gr.Button("Generate", variant="primary")
167
- with gr.Column():
168
- with gr.Box():
169
- with gr.Column():
170
- gr.Markdown("### Dependency Parser")
171
- col_punct = gr.Checkbox(label="Collapse Punctuation", value=True)
172
- col_phrase = gr.Checkbox(label="Collapse Phrases", value=True)
173
- compact = gr.Checkbox(label="Compact", value=False)
174
- depen_output = gr.HTML(value=dependency(DEFAULT_TEXT, True, True, False, DEFAULT_MODEL))
175
- dep_button = gr.Button("Generate Dependency Parser")
 
176
  with gr.Box():
177
  with gr.Column():
178
  gr.Markdown("### Entity Recognizer")
 
164
  with gr.Column():
165
  gr.Markdown("")
166
  button = gr.Button("Generate", variant="primary")
167
+ with gr.Column():
168
+ with gr.Tabs():
169
+ with gr.TabItem(""):
170
+ with gr.Column():
171
+ gr.Markdown("### Dependency Parser")
172
+ col_punct = gr.Checkbox(label="Collapse Punctuation", value=True)
173
+ col_phrase = gr.Checkbox(label="Collapse Phrases", value=True)
174
+ compact = gr.Checkbox(label="Compact", value=False)
175
+ depen_output = gr.HTML(value=dependency(DEFAULT_TEXT, True, True, False, DEFAULT_MODEL))
176
+ dep_button = gr.Button("Generate Dependency Parser")
177
  with gr.Box():
178
  with gr.Column():
179
  gr.Markdown("### Entity Recognizer")