michsethowusu commited on
Commit
4fbd7b6
·
verified ·
1 Parent(s): a7c6838

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -232,7 +232,7 @@ Please synthesize this information into a clear, coherent description that expla
232
  def generate_country_paragraphs(entity, sentences, countries):
233
  """Generate country-specific paragraphs using sentences and country info"""
234
  if not sentences or not countries:
235
- return "No sentences or countries found for this entity."
236
 
237
  country_paragraphs = []
238
 
@@ -314,7 +314,7 @@ with gr.Blocks(title="AU Education Policy Glossary", theme=gr.themes.Soft()) as
314
  filterable=True,
315
  info="Start typing to search for a topic"
316
  )
317
- search_btn = gr.Button("🔎 Search", variant="primary", size="lg")
318
 
319
  gr.Markdown("### Metadata")
320
  metadata_output = gr.Markdown()
@@ -329,7 +329,7 @@ with gr.Blocks(title="AU Education Policy Glossary", theme=gr.themes.Soft()) as
329
  gr.Markdown("### Geographic Distribution")
330
  map_plot = gr.Plot(label="Africa Map")
331
 
332
- gr.Markdown("### Entity Description")
333
  description_output = gr.Markdown()
334
 
335
  gr.Markdown("### Country-Specific Insights")
 
232
  def generate_country_paragraphs(entity, sentences, countries):
233
  """Generate country-specific paragraphs using sentences and country info"""
234
  if not sentences or not countries:
235
+ return "No sentences or countries found for this topic."
236
 
237
  country_paragraphs = []
238
 
 
314
  filterable=True,
315
  info="Start typing to search for a topic"
316
  )
317
+ search_btn = gr.Button("Search", variant="primary", size="lg")
318
 
319
  gr.Markdown("### Metadata")
320
  metadata_output = gr.Markdown()
 
329
  gr.Markdown("### Geographic Distribution")
330
  map_plot = gr.Plot(label="Africa Map")
331
 
332
+ gr.Markdown("### Topic Definition")
333
  description_output = gr.Markdown()
334
 
335
  gr.Markdown("### Country-Specific Insights")