Victoria Slocum commited on
Commit
ffb6ffc
1 Parent(s): c38a3d1

maybe better

Browse files
Files changed (2) hide show
  1. app.py +18 -16
  2. pipeline.svg +33 -0
app.py CHANGED
@@ -146,26 +146,28 @@ demo = gr.Blocks(css="scrollbar.css")
146
 
147
  with demo:
148
  with gr.Box():
 
149
  with gr.Column():
150
- gr.Markdown(" ## Chose a language model and input text")
151
- with gr.Row():
152
- with gr.Column():
153
- model_input = gr.Dropdown(
154
- choices=models, value=DEFAULT_MODEL, interactive=True, label="Pretrained Pipelines")
155
- with gr.Column():
156
- text_button = gr.Button("Get text in model language")
157
- with gr.Column():
158
- gr.Markdown("")
159
- with gr.Column():
160
- gr.Markdown("")
161
 
 
 
162
  with gr.Row():
163
  with gr.Column():
164
- text_input = gr.Textbox(
165
- value=DEFAULT_TEXT, interactive=True, label="Input Text")
166
- with gr.Column():
167
- gr.Markdown("")
168
- button = gr.Button("Generate", variant="primary")
 
 
 
 
 
 
 
169
  with gr.Tabs():
170
  with gr.TabItem(""):
171
  with gr.Column():
 
146
 
147
  with demo:
148
  with gr.Box():
149
+
150
  with gr.Column():
151
+ gr.Markdown("# Pipeline Visualizer")
152
+ gr.Markdown("### Visualize parts of the spaCy pipeline in an interactive demo.")
153
+ gr.Image("pipeline.svg")
 
 
 
 
 
 
 
 
154
 
155
+ with gr.Box():
156
+ with gr.Column():
157
  with gr.Row():
158
  with gr.Column():
159
+ gr.Markdown(" ## Choose a language model and input text")
160
+ with gr.Row():
161
+ with gr.Column():
162
+ model_input = gr.Dropdown(
163
+ choices=models, value=DEFAULT_MODEL, interactive=True, label="Pretrained Pipelines")
164
+ with gr.Column():
165
+ text_button = gr.Button("Get text in model language")
166
+ with gr.Row():
167
+ text_input = gr.Textbox(
168
+ value=DEFAULT_TEXT, interactive=True, label="Input Text")
169
+
170
+ button = gr.Button("Generate", variant="primary")
171
  with gr.Tabs():
172
  with gr.TabItem(""):
173
  with gr.Column():
pipeline.svg ADDED