Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -121,8 +121,10 @@ def run_analysis():
|
|
| 121 |
df_news = pd.read_csv(news_file)
|
| 122 |
news_summary = df_news.groupby('類別').size().to_dict()
|
| 123 |
news_table = df_news.to_html(index=False)
|
| 124 |
-
else:
|
| 125 |
-
|
|
|
|
|
|
|
| 126 |
# 社群參與表格
|
| 127 |
engagement_table=f"""
|
| 128 |
<table class="min-w-full bg-white border border-gray-200">
|
|
|
|
| 121 |
df_news = pd.read_csv(news_file)
|
| 122 |
news_summary = df_news.groupby('類別').size().to_dict()
|
| 123 |
news_table = df_news.to_html(index=False)
|
| 124 |
+
else:
|
| 125 |
+
news_summary = {}
|
| 126 |
+
news_table = "<p>未提供新聞資料</p>"
|
| 127 |
+
|
| 128 |
# 社群參與表格
|
| 129 |
engagement_table=f"""
|
| 130 |
<table class="min-w-full bg-white border border-gray-200">
|