AdhyaSuman commited on
Commit
90e22b0
Β·
verified Β·
1 Parent(s): 8c02b99

Update app/ui.py

Browse files
Files changed (1) hide show
  1. app/ui.py +10 -5
app/ui.py CHANGED
@@ -42,7 +42,11 @@ def get_base64_image(image_path):
42
  st.set_page_config(
43
  page_title="DTECT",
44
  page_icon="πŸ”",
45
- layout="wide"
 
 
 
 
46
  )
47
 
48
  # Sidebar branding and repo link
@@ -65,8 +69,7 @@ AVAILABLE_MODELS = ["DTM", "DETM", "CFDTM"]
65
  ENV_VAR_MAP = {
66
  "OpenAI": "OPENAI_API_KEY",
67
  "Anthropic": "ANTHROPIC_API_KEY",
68
- "Gemini": "GEMINI_API_KEY",
69
- "Mistral": "MISTRAL_API_KEY"
70
  }
71
 
72
  def list_datasets(data_dir):
@@ -261,8 +264,10 @@ if selected_words:
261
  legendgroup=word,
262
  showlegend=True
263
  ))
264
- fig.update_layout(title="", xaxis_title="Year", yaxis_title="Importance")
265
- st.plotly_chart(fig, use_container_width=True)
 
 
266
 
267
  # ==============================================================================
268
  # 3. πŸ” DOCUMENT RETRIEVAL & πŸ“ƒ SUMMARIZATION
 
42
  st.set_page_config(
43
  page_title="DTECT",
44
  page_icon="πŸ”",
45
+ layout="wide",
46
+ menu_items={
47
+ 'Get Help': 'https://github.com/AdhyaSuman/DTECT',
48
+ 'Report a bug': "https://github.com/AdhyaSuman/DTECT/issues/new"
49
+ }
50
  )
51
 
52
  # Sidebar branding and repo link
 
69
  ENV_VAR_MAP = {
70
  "OpenAI": "OPENAI_API_KEY",
71
  "Anthropic": "ANTHROPIC_API_KEY",
72
+ "Gemini": "GEMINI_API_KEY"
 
73
  }
74
 
75
  def list_datasets(data_dir):
 
264
  legendgroup=word,
265
  showlegend=True
266
  ))
267
+ fig.update_layout(title="", xaxis_title="Year", yaxis_title="Importance", legend=dict(font=dict(size=16)))
268
+ _, chart_col, _ = st.columns([0.2, 0.6, 0.2])
269
+ with chart_col:
270
+ st.plotly_chart(fig, use_container_width=True)
271
 
272
  # ==============================================================================
273
  # 3. πŸ” DOCUMENT RETRIEVAL & πŸ“ƒ SUMMARIZATION