Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ import matplotlib as mpl
|
|
10 |
from io import BytesIO
|
11 |
|
12 |
# Set up Streamlit app
|
13 |
-
st.title("PCHOME
|
14 |
|
15 |
# Prompt user for keyword input
|
16 |
keyword = st.text_input("請輸入關鍵字:", "平板")
|
@@ -62,7 +62,7 @@ if st.button("開始爬取"):
|
|
62 |
st.subheader("價格分布圖")
|
63 |
fig, ax = plt.subplots(figsize=(15, 8))
|
64 |
ax.plot(df.index[:70], df['price'][:70], 'o', color='skyblue', markersize=8)
|
65 |
-
ax.set_title('PCHOME
|
66 |
ax.axhline(y=mean_price, color='red', linestyle='--', linewidth=2, label=f'Mean Price: {mean_price:.2f}')
|
67 |
ax.set_xlabel('Index', fontsize=14)
|
68 |
ax.set_ylabel('Price', fontsize=14)
|
|
|
10 |
from io import BytesIO
|
11 |
|
12 |
# Set up Streamlit app
|
13 |
+
st.title("PCHOME 商品價格爬蟲分析")
|
14 |
|
15 |
# Prompt user for keyword input
|
16 |
keyword = st.text_input("請輸入關鍵字:", "平板")
|
|
|
62 |
st.subheader("價格分布圖")
|
63 |
fig, ax = plt.subplots(figsize=(15, 8))
|
64 |
ax.plot(df.index[:70], df['price'][:70], 'o', color='skyblue', markersize=8)
|
65 |
+
ax.set_title('PCHOME 電商網站上商品售價', fontsize=20, fontweight='bold')
|
66 |
ax.axhline(y=mean_price, color='red', linestyle='--', linewidth=2, label=f'Mean Price: {mean_price:.2f}')
|
67 |
ax.set_xlabel('Index', fontsize=14)
|
68 |
ax.set_ylabel('Price', fontsize=14)
|