Spaces:
Running
Running
vickeee465
commited on
Commit
·
b7adca5
1
Parent(s):
433b160
added introduction text
Browse files
app.py
CHANGED
@@ -218,6 +218,12 @@ with gr.Blocks() as demo:
|
|
218 |
predict_button = gr.Button("Submit")
|
219 |
|
220 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
with gr.Column(scale=7):
|
222 |
result_table = gr.Dataframe(
|
223 |
headers=["Sentence", "Prediction", "Confidence"],
|
|
|
218 |
predict_button = gr.Button("Submit")
|
219 |
|
220 |
with gr.Row():
|
221 |
+
introduction = """
|
222 |
+
This platform is designed to detect and visualize emotions in text. The model behind it operates using a 6-label codebook, including the following labels: ‘Anger’, ‘Fear’, ‘Disgust’, ‘Sadness’, ‘Joy’, and ‘None of Them’.
|
223 |
+
The model is optimized for sentence-level analysis, and make predictions in the following languages: Czech, English, French, German, Hungarian, Polish, and Slovak.
|
224 |
+
The text you enter in the input box is automatically divided into sentences, and the analysis is performed on each sentence. Depending on the length of the text, this process may take a few seconds, but for longer texts, it can take up to 2-3 minutes.
|
225 |
+
"""
|
226 |
+
gr.Markdown(introduction)
|
227 |
with gr.Column(scale=7):
|
228 |
result_table = gr.Dataframe(
|
229 |
headers=["Sentence", "Prediction", "Confidence"],
|