rioanggara commited on
Commit
4548114
·
1 Parent(s): 5bfd5e8
Files changed (1) hide show
  1. app.py +5 -5
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.inputs.File(type="csv"),
46
- gr.inputs.Textbox(label="X Column Name"),
47
- gr.inputs.Textbox(label="Y Column Name"),
48
  ],
49
  outputs=[
50
- gr.outputs.Image(type="plot"),
51
- gr.outputs.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."
 
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."