Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -27,7 +27,7 @@ outputs = [gr.Dataframe(row_count = (2, "dynamic"), col_count=(1, "fixed"), labe
|
|
| 27 |
def infer(inputs):
|
| 28 |
data = pd.DataFrame(inputs, columns=headers)
|
| 29 |
predictions = pipe.predict(inputs)
|
| 30 |
-
return pd.DataFrame(predictions, columns=["
|
| 31 |
|
| 32 |
gr.Interface(infer, inputs = inputs, outputs = outputs, title = title,
|
| 33 |
description = description, examples=[df.head(3)], cache_examples=False).launch(debug=True)
|
|
|
|
| 27 |
def infer(inputs):
|
| 28 |
data = pd.DataFrame(inputs, columns=headers)
|
| 29 |
predictions = pipe.predict(inputs)
|
| 30 |
+
return pd.DataFrame(predictions, columns=["Depression"])
|
| 31 |
|
| 32 |
gr.Interface(infer, inputs = inputs, outputs = outputs, title = title,
|
| 33 |
description = description, examples=[df.head(3)], cache_examples=False).launch(debug=True)
|