Spaces:
Sleeping
Sleeping
Updated description
Browse files
app.py
CHANGED
@@ -100,8 +100,8 @@ def text_analysis(text):
|
|
100 |
pos_count = pd.DataFrame(
|
101 |
{
|
102 |
"token": tokens,
|
103 |
-
"
|
104 |
-
"
|
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
|