Emanuel commited on
Commit
6447205
1 Parent(s): 0917b99

Updated text description and buttons labels

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -135,16 +135,17 @@ with gr.Blocks(css=css) as demo:
135
  )
136
  output_highlighted = gr.HighlightedText(label="Colorful output", visible=False)
137
  output_df = gr.Dataframe(label="Tabular output", visible=False)
138
- submit_btn = gr.Button("Send")
139
  submit_btn.click(
140
  fn=text_analysis, inputs=text, outputs=[output_highlighted, output_df]
141
  )
142
  with gr.Tab("Multiple sentences"):
143
  gr.HTML(
144
  """
145
- <p>Upload file with raw sentences in it. Below is an example of what we expect the contents of the file to look like.
146
- Sentences are automatically splitted by Spacy's sentencizer.
147
- To force an explicit division, manually separate the sentences on different lines.</p>
 
148
  """
149
  )
150
  gr.Markdown(
@@ -158,7 +159,7 @@ with gr.Blocks(css=css) as demo:
158
  )
159
  input_file = gr.File(label="Upload your input file here...")
160
  output_file = gr.File(visible=False)
161
- submit_btn_batch = gr.Button("Send")
162
  submit_btn_batch.click(
163
  fn=batch_analysis, inputs=input_file, outputs=output_file
164
  )
@@ -166,4 +167,4 @@ with gr.Blocks(css=css) as demo:
166
  gr.HTML(bottom_html)
167
 
168
 
169
- demo.launch(debug=True)
 
135
  )
136
  output_highlighted = gr.HighlightedText(label="Colorful output", visible=False)
137
  output_df = gr.Dataframe(label="Tabular output", visible=False)
138
+ submit_btn = gr.Button("Tag it")
139
  submit_btn.click(
140
  fn=text_analysis, inputs=text, outputs=[output_highlighted, output_df]
141
  )
142
  with gr.Tab("Multiple sentences"):
143
  gr.HTML(
144
  """
145
+ <p>Upload a plain text file with sentences in it.
146
+ Find below an example of what we expect the content of the file to look like.
147
+ Sentences are automatically split by spaCy's sentencizer.
148
+ To force an explicit segmentation, manually separate the sentences using a new line for each one.</p>
149
  """
150
  )
151
  gr.Markdown(
 
159
  )
160
  input_file = gr.File(label="Upload your input file here...")
161
  output_file = gr.File(visible=False)
162
+ submit_btn_batch = gr.Button("Tag it")
163
  submit_btn_batch.click(
164
  fn=batch_analysis, inputs=input_file, outputs=output_file
165
  )
 
167
  gr.HTML(bottom_html)
168
 
169
 
170
+ demo.launch(debug=True, server_port=15000)