Update app.py
Browse files
app.py
CHANGED
|
@@ -47,4 +47,18 @@ def get_combined_news():
|
|
| 47 |
|
| 48 |
return result
|
| 49 |
|
| 50 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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()
|