Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -5,8 +5,8 @@ import plotly.express as px
|
|
5 |
def plot_scatter_chart():
|
6 |
x=[49, 65, 53, 45, 56, 47, 52, 61] # 體重
|
7 |
y=[159, 177, 156, 163, 164, 158, 166, 171] # 身高
|
8 |
-
data=pd.DataFrame({'
|
9 |
-
fig=px.scatter(data, x='
|
10 |
return fig # 傳回 Figure 物件
|
11 |
|
12 |
iface=gr.Interface(
|
|
|
5 |
def plot_scatter_chart():
|
6 |
x=[49, 65, 53, 45, 56, 47, 52, 61] # 體重
|
7 |
y=[159, 177, 156, 163, 164, 158, 166, 171] # 身高
|
8 |
+
data=pd.DataFrame({'weight': x, 'height': y})
|
9 |
+
fig=px.scatter(data, x='weight', y='height')
|
10 |
return fig # 傳回 Figure 物件
|
11 |
|
12 |
iface=gr.Interface(
|