Spaces:
Running
Running
vickeee465
commited on
Commit
·
dc87572
1
Parent(s):
0b240c8
intro text at the right place
Browse files
app.py
CHANGED
@@ -208,6 +208,12 @@ def predict_wrapper(text, language):
|
|
208 |
|
209 |
with gr.Blocks() as demo:
|
210 |
placeholder = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
|
|
|
|
|
|
|
|
|
|
|
|
|
211 |
with gr.Row():
|
212 |
with gr.Column():
|
213 |
input_text = gr.Textbox(lines=6, label="Input", placeholder="Enter your text here...")
|
@@ -218,12 +224,6 @@ with gr.Blocks() as demo:
|
|
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"],
|
|
|
208 |
|
209 |
with gr.Blocks() as demo:
|
210 |
placeholder = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
|
211 |
+
introduction = """
|
212 |
+
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’.
|
213 |
+
The model is optimized for sentence-level analysis, and make predictions in the following languages: Czech, English, French, German, Hungarian, Polish, and Slovak.
|
214 |
+
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.
|
215 |
+
"""
|
216 |
+
gr.Markdown(introduction)
|
217 |
with gr.Row():
|
218 |
with gr.Column():
|
219 |
input_text = gr.Textbox(lines=6, label="Input", placeholder="Enter your text here...")
|
|
|
224 |
predict_button = gr.Button("Submit")
|
225 |
|
226 |
with gr.Row():
|
|
|
|
|
|
|
|
|
|
|
|
|
227 |
with gr.Column(scale=7):
|
228 |
result_table = gr.Dataframe(
|
229 |
headers=["Sentence", "Prediction", "Confidence"],
|