sharner commited on
Commit
1b47863
·
1 Parent(s): 1857636

Go back to old image layout

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -11,8 +11,6 @@ dataset_api.download("Resources/images/news_image.png")
11
  # dataset_api.download("Resources/images/general_sentiment_history.png")
12
  # dataset_api.download("Resources/images/demo_sentiment_history.png")
13
 
14
- new_image_html ='<img width="400" height="400" style="float: right;" src="./news_image.png">'
15
-
16
  news_headline = "Lucia celebration at KTH Library"
17
  news_source = "KTH Library"
18
  news_article = """This year Akademiska hus and KTH Library invites you to a warm and beautiful Lucia celebration in the library hall. We will get to listen to Kongliga Teknologkören (KTH choir) singing traditional Lucia hymns.
@@ -28,7 +26,10 @@ with gr.Blocks() as demo:
28
  gr.Markdown("Reported by: " + news_source)
29
 
30
  with gr.Row():
31
- gr.Markdown(new_image_html + "\n" + news_article)
 
 
 
32
 
33
  # with gr.Row():
34
  # with gr.Column():
 
11
  # dataset_api.download("Resources/images/general_sentiment_history.png")
12
  # dataset_api.download("Resources/images/demo_sentiment_history.png")
13
 
 
 
14
  news_headline = "Lucia celebration at KTH Library"
15
  news_source = "KTH Library"
16
  news_article = """This year Akademiska hus and KTH Library invites you to a warm and beautiful Lucia celebration in the library hall. We will get to listen to Kongliga Teknologkören (KTH choir) singing traditional Lucia hymns.
 
26
  gr.Markdown("Reported by: " + news_source)
27
 
28
  with gr.Row():
29
+ with gr.Column():
30
+ gr.Markdown(news_article)
31
+ with gr.Column():
32
+ input_img = gr.Image('news_image.png', elem_id="news-img")
33
 
34
  # with gr.Row():
35
  # with gr.Column():