tony1966 commited on
Commit
df8340d
·
verified ·
1 Parent(s): e298d07

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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({'體重': x, '體重': y})
9
- fig=px.scatter(data, x='體重', y='身高')
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(