nick5363 commited on
Commit
4d088e7
·
verified ·
1 Parent(s): 4258336

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -9
app.py CHANGED
@@ -35,12 +35,7 @@ def get_combined_news():
35
  return result
36
 
37
  # Tự động load luôn khi mở web (live=True)
38
- gr.Interface(
39
- fn=get_combined_news,
40
- inputs=None,
41
- outputs="markdown",
42
- live=True, # <<< tự động chạy khi load
43
-
44
  theme = gr.themes.Base().set(
45
  body_background_fill="#000000", # nền đen
46
  body_text_color="#ffffff", # chữ trắng
@@ -50,7 +45,8 @@ gr.Interface(
50
  fn=get_combined_news,
51
  inputs=None,
52
  outputs="markdown",
 
 
53
  title="Tin tức Tài chính Mới nhất (10 bài liên tục)",
54
- description="Hiển thị 3 tin từ Marketaux và 7 tin từ Yahoo RSS — không ảnh, số liên tục từ 1 đến 10.",
55
- theme=theme).
56
- launch()
 
35
  return result
36
 
37
  # Tự động load luôn khi mở web (live=True)
38
+ # Giao diện Gradio với theme tối + tự chạy
 
 
 
 
 
39
  theme = gr.themes.Base().set(
40
  body_background_fill="#000000", # nền đen
41
  body_text_color="#ffffff", # chữ trắng
 
45
  fn=get_combined_news,
46
  inputs=None,
47
  outputs="markdown",
48
+ live=True, # tự động chạy khi mở web
49
+ theme=theme,
50
  title="Tin tức Tài chính Mới nhất (10 bài liên tục)",
51
+ description="Hiển thị 3 tin từ Marketaux và 7 tin từ Yahoo RSS — không ảnh, số liên tục từ 1 đến 10."
52
+ ).launch()