Spaces:
Running
Running
kovacsvi
commited on
Commit
·
6834950
1
Parent(s):
7889447
move analytics script to head
Browse files
app.py
CHANGED
@@ -228,7 +228,7 @@ def predict_wrapper(text, language):
|
|
228 |
return results, figure, heatmap, output_info + funding_info
|
229 |
|
230 |
|
231 |
-
with gr.Blocks(css=css) as demo:
|
232 |
placeholder = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
|
233 |
introduction = """
|
234 |
This application detects and visualises 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`.
|
@@ -237,7 +237,6 @@ with gr.Blocks(css=css) as demo:
|
|
237 |
Read our Q&A about Pulse [here](https://cms.mores-horizon.eu/uploads/MORES_Pulse_Q_and_A_33f61ea348.pdf).
|
238 |
"""
|
239 |
|
240 |
-
gr.HTML(analytics_script)
|
241 |
gr.HTML("<h1>MORES Pulse</h1>", elem_classes="title_")
|
242 |
gr.Markdown(introduction, elem_classes="info")
|
243 |
with gr.Row():
|
|
|
228 |
return results, figure, heatmap, output_info + funding_info
|
229 |
|
230 |
|
231 |
+
with gr.Blocks(css=css, head=analytics_script) as demo:
|
232 |
placeholder = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."
|
233 |
introduction = """
|
234 |
This application detects and visualises 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`.
|
|
|
237 |
Read our Q&A about Pulse [here](https://cms.mores-horizon.eu/uploads/MORES_Pulse_Q_and_A_33f61ea348.pdf).
|
238 |
"""
|
239 |
|
|
|
240 |
gr.HTML("<h1>MORES Pulse</h1>", elem_classes="title_")
|
241 |
gr.Markdown(introduction, elem_classes="info")
|
242 |
with gr.Row():
|