Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ DEVELOPER_NAME = "黃千宥、陳奕瑄、汪于捷、李哲弘、洪寓澤"
|
|
9 |
# 初始化 pytrends
|
10 |
# hl='zh-TW' -> 繁體中文, tz=480 -> 台灣時區 (GMT+8)
|
11 |
pytrends = TrendReq(hl='zh-TW', tz=480)
|
12 |
-
|
13 |
def analyze_google_trends(keywords_str: str, timeframe: str):
|
14 |
"""
|
15 |
根據輸入的關鍵字和時間範圍,從 Google Trends 獲取並分析資料。
|
@@ -96,7 +96,7 @@ def plot_interest_by_region(df: pd.DataFrame, title: str):
|
|
96 |
return fig
|
97 |
|
98 |
with gr.Blocks(
|
99 |
-
theme=gr.themes.
|
100 |
primary_hue="blue",
|
101 |
secondary_hue="cyan",
|
102 |
font=["Arial", "sans-serif"]
|
|
|
9 |
# 初始化 pytrends
|
10 |
# hl='zh-TW' -> 繁體中文, tz=480 -> 台灣時區 (GMT+8)
|
11 |
pytrends = TrendReq(hl='zh-TW', tz=480)
|
12 |
+
|
13 |
def analyze_google_trends(keywords_str: str, timeframe: str):
|
14 |
"""
|
15 |
根據輸入的關鍵字和時間範圍,從 Google Trends 獲取並分析資料。
|
|
|
96 |
return fig
|
97 |
|
98 |
with gr.Blocks(
|
99 |
+
theme=gr.themes.Default(
|
100 |
primary_hue="blue",
|
101 |
secondary_hue="cyan",
|
102 |
font=["Arial", "sans-serif"]
|