Update app.py
Browse files
app.py
CHANGED
@@ -45,15 +45,15 @@ query_embeddings = model.encode(queries)
|
|
45 |
app_ui = ui.page_fluid(
|
46 |
#ui.h3("EGU25 AI-session recommender", style = "margin-bottom: 80px; color: blue; background-color: lightgrey;"),
|
47 |
ui.h3(
|
48 |
-
"EGU25
|
49 |
style="margin-bottom: 60px; color: #2A9DF4; font-weight: bold; background-color: #F2F2F2; padding: 15px; border-radius: 8px; text-align: center;"),
|
50 |
ui.card(
|
51 |
ui.card_header("How to use"),
|
52 |
-
ui.HTML("
|
53 |
|
54 |
|
55 |
ui.input_text_area("user_input", "", placeholder="Paste abstract", width = "100%"),
|
56 |
-
ui.input_action_button("submit", "Get
|
57 |
ui.HTML("<hr>"),
|
58 |
ui.tooltip(
|
59 |
ui.input_action_button("btn", "About the results"),
|
@@ -62,38 +62,8 @@ app_ui = ui.page_fluid(
|
|
62 |
placement="right",
|
63 |
),
|
64 |
ui.output_ui("results"),
|
65 |
-
ui.
|
66 |
-
|
67 |
-
<!-- Feedback Form Section -->
|
68 |
-
<div style="margin-top: 20px; border-top: 1px solid #ccc; padding-top: 20px;">
|
69 |
-
<h3>Feedback</h3>
|
70 |
-
<p>Was the tool useful?</p>
|
71 |
-
<form action="mailto:jan.sodoge@ufz.de" method="post" enctype="text/plain">
|
72 |
-
<!-- Radio Buttons for Yes/No -->
|
73 |
-
<label>
|
74 |
-
<input type="radio" name="useful" value="Yes" required>
|
75 |
-
Yes
|
76 |
-
</label>
|
77 |
-
<label>
|
78 |
-
<input type="radio" name="useful" value="No" required>
|
79 |
-
No
|
80 |
-
</label>
|
81 |
-
<br><br>
|
82 |
-
<!-- Text Area for Comments -->
|
83 |
-
<label for="comments">Comments:</label>
|
84 |
-
<br>
|
85 |
-
<textarea id="comments" name="comments" rows="4" cols="50" placeholder="Enter your feedback here..."></textarea>
|
86 |
-
<br><br>
|
87 |
-
<!-- Submit Button -->
|
88 |
-
<button type="submit" style="padding: 10px 15px; background-color: #4CAF50; color: white; border: none; border-radius: 4px; cursor: pointer;">
|
89 |
-
Submit
|
90 |
-
</button>
|
91 |
-
</form>
|
92 |
-
</div>
|
93 |
-
"""
|
94 |
-
),
|
95 |
-
|
96 |
-
ui.card_footer("Application developed by Jan Sodoge. Project by the Computational Extreme Events Group at the Helmholtz-Centre For Environmental Research"),
|
97 |
|
98 |
|
99 |
|
|
|
45 |
app_ui = ui.page_fluid(
|
46 |
#ui.h3("EGU25 AI-session recommender", style = "margin-bottom: 80px; color: blue; background-color: lightgrey;"),
|
47 |
ui.h3(
|
48 |
+
"EGU25 Topic Similarity Adviser: experimental tool ",
|
49 |
style="margin-bottom: 60px; color: #2A9DF4; font-weight: bold; background-color: #F2F2F2; padding: 15px; border-radius: 8px; text-align: center;"),
|
50 |
ui.card(
|
51 |
ui.card_header("How to use"),
|
52 |
+
ui.HTML("This experimental tool may help you find the most suitable session to submit to for the European Geosciences Union General Assembly 2025 by analysing the content of your abstract. Using advanced Natural Language Processing (NLP), it calculates how closely your abstract text matches each available session, across all disciplines and Programme Groups. The EGU25 topic similarity adviser is available until 13 January, 2025 13:00 CET. <br> Rest assured: your data are not stored or documented in any way. ")),
|
53 |
|
54 |
|
55 |
ui.input_text_area("user_input", "", placeholder="Paste abstract", width = "100%"),
|
56 |
+
ui.input_action_button("submit", "Get Session Suggestions ", class_="btn btn-primary"),
|
57 |
ui.HTML("<hr>"),
|
58 |
ui.tooltip(
|
59 |
ui.input_action_button("btn", "About the results"),
|
|
|
62 |
placement="right",
|
63 |
),
|
64 |
ui.output_ui("results"),
|
65 |
+
ui.card_footer("Please share your feedback with us at jan.sodoge(at)ufz.de <br>
|
66 |
+
Application developed by Jan Sodoge. Project by the Computational Extreme Events Group at the Helmholtz-Centre For Environmental Research"),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
67 |
|
68 |
|
69 |
|