Emanuel commited on
Commit
4158c5a
1 Parent(s): 304ed2e

Updated description

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -100,8 +100,8 @@ def text_analysis(text):
100
  pos_count = pd.DataFrame(
101
  {
102
  "token": tokens,
103
- "etiqueta": labels,
104
- "confiança": scores,
105
  }
106
  )
107
  pos_tokens = []
@@ -193,7 +193,7 @@ with gr.Blocks(css=css) as demo:
193
  """
194
  )
195
  input_file = gr.File(label="Upload your input file here...")
196
- output_file = gr.File(visible=False)
197
  submit_btn_batch = gr.Button("Tag it")
198
  submit_btn_batch.click(
199
  fn=batch_analysis, inputs=input_file, outputs=output_file
 
100
  pos_count = pd.DataFrame(
101
  {
102
  "token": tokens,
103
+ "tag": labels,
104
+ "confidence": scores,
105
  }
106
  )
107
  pos_tokens = []
 
193
  """
194
  )
195
  input_file = gr.File(label="Upload your input file here...")
196
+ output_file = gr.File(label="Tagged file", visible=False)
197
  submit_btn_batch = gr.Button("Tag it")
198
  submit_btn_batch.click(
199
  fn=batch_analysis, inputs=input_file, outputs=output_file