baobuiquang commited on
Commit
e2793c2
·
verified ·
1 Parent(s): b5a1c35

initial commit

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -6,6 +6,8 @@ from _rss_parser import rss_parser
6
  # ====================================================================================================
7
 
8
  def fn_display_all_news():
 
 
9
  html_content = ""
10
  html_content += "<div id='all-news-items'>"
11
  for e in rss_parser():
@@ -159,6 +161,9 @@ textarea {
159
  font-size: 32px;
160
  text-align: center;
161
  }
 
 
 
162
  """
163
 
164
  # ====================================================================================================
@@ -171,7 +176,7 @@ with gr.Blocks(title="The News") as demo:
171
  # gr.Markdown()
172
  with gr.Column(scale=1):
173
  gr.Code("The News", container=False, show_label=False, show_line_numbers=False, elem_id="title-the-news")
174
- display_all_news = gr.HTML("<div style='text-align: center; margin-top: 37svh;'>🕷 Spiders are crawling the web 🕷</div>")
175
  # with gr.Column(scale=1):
176
  # gr.Markdown()
177
  demo.load(
 
6
  # ====================================================================================================
7
 
8
  def fn_display_all_news():
9
+ # import time
10
+ # time.sleep(9999)
11
  html_content = ""
12
  html_content += "<div id='all-news-items'>"
13
  for e in rss_parser():
 
161
  font-size: 32px;
162
  text-align: center;
163
  }
164
+ .progress-text {
165
+ display: none !important;
166
+ }
167
  """
168
 
169
  # ====================================================================================================
 
176
  # gr.Markdown()
177
  with gr.Column(scale=1):
178
  gr.Code("The News", container=False, show_label=False, show_line_numbers=False, elem_id="title-the-news")
179
+ display_all_news = gr.HTML("<div style='text-align: center; margin-top: 37svh;'>🕷 Spiders are crawling the big web 🕷<br>Please wait...</div>")
180
  # with gr.Column(scale=1):
181
  # gr.Markdown()
182
  demo.load(