SamuelHarner commited on
Commit
5f80fd8
·
1 Parent(s): 1768336

Add link to article

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -33,6 +33,7 @@ news_headline = most_positive_article["title"]
33
  news_source = most_positive_article["source_id"]
34
  news_description = most_positive_article["description"]
35
  news_article = most_positive_article["content"]
 
36
 
37
  # Create UI
38
  with gr.Blocks(theme=gr.themes.Default(font=[gr.themes.GoogleFont("IBM Plex Mono"), "Arial", "sans-serif"])) as demo:
@@ -40,6 +41,7 @@ with gr.Blocks(theme=gr.themes.Default(font=[gr.themes.GoogleFont("IBM Plex Mono
40
  gr.Markdown("## Today's News: " + news_headline)
41
  gr.Markdown(news_description)
42
  gr.Markdown("Reported by: " + news_source)
 
43
 
44
  with gr.Row():
45
  with gr.Column():
 
33
  news_source = most_positive_article["source_id"]
34
  news_description = most_positive_article["description"]
35
  news_article = most_positive_article["content"]
36
+ news_link = most_positive_article["link"]
37
 
38
  # Create UI
39
  with gr.Blocks(theme=gr.themes.Default(font=[gr.themes.GoogleFont("IBM Plex Mono"), "Arial", "sans-serif"])) as demo:
 
41
  gr.Markdown("## Today's News: " + news_headline)
42
  gr.Markdown(news_description)
43
  gr.Markdown("Reported by: " + news_source)
44
+ gr.Markdown("Link: " + news_link)
45
 
46
  with gr.Row():
47
  with gr.Column():