jsodoge commited on
Commit
dda5c06
·
verified ·
1 Parent(s): b4e507d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -8
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.card_header("EGU25 AI-session recommender"),
47
- ui.h3("How this tool works"),
48
- 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 Lorem ipsum dolor sit amet. 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 Lorem ipsum dolor sit amet."),
 
 
 
 
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>"),