kovacsvi commited on
Commit
51b9447
·
1 Parent(s): 2320c61

back to markdown

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -231,12 +231,12 @@ with gr.Blocks(css=css) as demo:
231
  placeholder = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
232
  introduction = """
233
  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’.
234
- The <a href="https://huggingface.co/poltextlab/xlm-roberta-large-pooled-emotions6>model</a> is optimized for sentence-level analysis, and make predictions in the following languages: Czech, English, French, German, Hungarian, Polish, and Slovak.
235
  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.
236
  """
237
 
238
  gr.HTML("<h1>MORES Pulse</h1>", elem_classes="title_")
239
- gr.HTML(introduction, elem_classes="info")
240
  with gr.Row():
241
  with gr.Column():
242
  input_text = gr.Textbox(lines=6, label="Input", placeholder="Enter your text here...")
 
231
  placeholder = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
232
  introduction = """
233
  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’.
234
+ The [model](https://huggingface.co/poltextlab/xlm-roberta-large-pooled-emotions6) is optimized for sentence-level analysis, and make predictions in the following languages: Czech, English, French, German, Hungarian, Polish, and Slovak.
235
  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.
236
  """
237
 
238
  gr.HTML("<h1>MORES Pulse</h1>", elem_classes="title_")
239
+ gr.Markdown(introduction, elem_classes="info")
240
  with gr.Row():
241
  with gr.Column():
242
  input_text = gr.Textbox(lines=6, label="Input", placeholder="Enter your text here...")