Spaces:
Sleeping
Sleeping
Commit
·
4548114
1
Parent(s):
5bfd5e8
change
Browse files
app.py
CHANGED
@@ -42,13 +42,13 @@ def linear_regression(input_csv, x_column, y_column):
|
|
42 |
iface = gr.Interface(
|
43 |
fn=linear_regression,
|
44 |
inputs=[
|
45 |
-
gr.
|
46 |
-
gr.
|
47 |
-
gr.
|
48 |
],
|
49 |
outputs=[
|
50 |
-
gr.
|
51 |
-
gr.
|
52 |
],
|
53 |
title="Automatic Linear Regression Modeling",
|
54 |
description="Upload a CSV file and specify the columns for performing linear regression."
|
|
|
42 |
iface = gr.Interface(
|
43 |
fn=linear_regression,
|
44 |
inputs=[
|
45 |
+
gr.components.File(type="csv"),
|
46 |
+
gr.components.Textbox(label="X Column Name"),
|
47 |
+
gr.components.Textbox(label="Y Column Name"),
|
48 |
],
|
49 |
outputs=[
|
50 |
+
gr.components.Image(type="plot"),
|
51 |
+
gr.components.Textbox(label="Regression Info")
|
52 |
],
|
53 |
title="Automatic Linear Regression Modeling",
|
54 |
description="Upload a CSV file and specify the columns for performing linear regression."
|