SamuelHarner commited on
Commit
96e6361
·
1 Parent(s): 74d7c7e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -25,6 +25,8 @@ if most_positive_article['pubdate'] == today: # show image generated for today's
25
  else:
26
  news_img = 'https://raw.githubusercontent.com/SamuelHarner/app-images/main/images/delight-news-logo.png?raw=true'
27
 
 
 
28
  # Get content
29
  news_headline = most_positive_article["title"]
30
  news_source = most_positive_article["source_id"]
@@ -38,9 +40,9 @@ with gr.Blocks() as demo:
38
 
39
  with gr.Row():
40
  with gr.Column():
41
- gr.Markdown(news_article)
42
- with gr.Column():
43
- gr.Image(news_img, elem_id="news-img")
44
 
45
  with gr.Row():
46
  with gr.Column():
 
25
  else:
26
  news_img = 'https://raw.githubusercontent.com/SamuelHarner/app-images/main/images/delight-news-logo.png?raw=true'
27
 
28
+ news_img_md = f'<img width="400" height="400" style="float: right;" src={news_img}>'
29
+
30
  # Get content
31
  news_headline = most_positive_article["title"]
32
  news_source = most_positive_article["source_id"]
 
40
 
41
  with gr.Row():
42
  with gr.Column():
43
+ gr.Markdown(news_img_md + "\n" + news_article)
44
+ #with gr.Column():
45
+ # gr.Image(news_img, elem_id="news-img")
46
 
47
  with gr.Row():
48
  with gr.Column():