nick5363 commited on
Commit
08a6a9e
·
verified ·
1 Parent(s): bd3d5fc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -1
app.py CHANGED
@@ -47,4 +47,18 @@ def get_combined_news():
47
 
48
  return result
49
 
50
- gr.Interface(get_combined_news, inputs=[], outputs="markdown", title="Tin Tức Thị Trường Tổng Hợp").launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
47
 
48
  return result
49
 
50
+ # Tự động load luôn khi mở web (live=True)
51
+ # Giao diện Gradio với theme tối + tự chạy
52
+ theme = gr.themes.Base().set(
53
+ body_background_fill="#000000", # nền đen
54
+ body_text_color="#ffffff", # chữ trắng
55
+ )
56
+
57
+ gr.Interface(
58
+ fn=get_combined_news,
59
+ inputs=None,
60
+ outputs="markdown",
61
+ live=True, # tự động chạy khi mở web
62
+ theme=theme,
63
+
64
+ ).launch()