Update app.py
Browse files
app.py
CHANGED
@@ -24,7 +24,7 @@ model = SentenceTransformer('all-MiniLM-L6-v2')
|
|
24 |
queries = pd.read_excel("egu_session_descriptions.xlsx").Description
|
25 |
titles = pd.read_excel("egu_session_descriptions.xlsx").Title
|
26 |
ids = pd.read_excel("egu_session_descriptions.xlsx").ID
|
27 |
-
|
28 |
|
29 |
prefix = "https://meetingorganizer.copernicus.org/EGU25/session/"
|
30 |
|
@@ -37,15 +37,15 @@ urls = [f"{prefix}{num}" for num in ids]
|
|
37 |
query_embeddings = model.encode(queries)
|
38 |
|
39 |
|
40 |
-
ui.tags.style(
|
41 |
-
".result-box { color:white; background:#2A2A2A !important; }"
|
42 |
-
)
|
43 |
-
|
44 |
# Define the UI
|
45 |
app_ui = ui.page_fluid(
|
46 |
-
ui.
|
47 |
-
|
48 |
-
|
|
|
|
|
|
|
|
|
49 |
ui.input_text_area("user_input", "Enter your text:", placeholder="Paste abstract", width = "100%"),
|
50 |
ui.input_action_button("submit", "Get session recommendations", class_="btn btn-primary"),
|
51 |
ui.HTML("<hr>"),
|
|
|
24 |
queries = pd.read_excel("egu_session_descriptions.xlsx").Description
|
25 |
titles = pd.read_excel("egu_session_descriptions.xlsx").Title
|
26 |
ids = pd.read_excel("egu_session_descriptions.xlsx").ID
|
27 |
+
ids = [int(num) for num in ids]
|
28 |
|
29 |
prefix = "https://meetingorganizer.copernicus.org/EGU25/session/"
|
30 |
|
|
|
37 |
query_embeddings = model.encode(queries)
|
38 |
|
39 |
|
|
|
|
|
|
|
|
|
40 |
# Define the UI
|
41 |
app_ui = ui.page_fluid(
|
42 |
+
ui.h3("EGU25 AI-session recommender"),
|
43 |
+
|
44 |
+
ui.card(
|
45 |
+
ui.card_header("How to use"),
|
46 |
+
ui.p("Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lore.")),
|
47 |
+
|
48 |
+
|
49 |
ui.input_text_area("user_input", "Enter your text:", placeholder="Paste abstract", width = "100%"),
|
50 |
ui.input_action_button("submit", "Get session recommendations", class_="btn btn-primary"),
|
51 |
ui.HTML("<hr>"),
|