Isabel Gwara commited on
Commit
bf8a587
·
1 Parent(s): 3d15039

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -135,7 +135,7 @@ for colname in data.columns:
135
 
136
  # generate gradio interface
137
  if st.button("Submit"):
138
- x = pd.DataFrame([inputls], columns=data.columns)
139
  prediction = model.predict(x)[0]
140
 
141
  st.text(f"This instance is a {prediction}")
 
135
 
136
  # generate gradio interface
137
  if st.button("Submit"):
138
+ x = pd.DataFrame([inputls])
139
  prediction = model.predict(x)[0]
140
 
141
  st.text(f"This instance is a {prediction}")