Spaces:
Sleeping
Sleeping
Commit
·
c662121
1
Parent(s):
8705e71
tw
Browse files
app.py
CHANGED
|
@@ -43,9 +43,13 @@ def linear_regression(input_csv):
|
|
| 43 |
|
| 44 |
return image, coef_info
|
| 45 |
|
| 46 |
-
# Tutorial Markdown
|
| 47 |
-
|
| 48 |
-
##
|
|
|
|
|
|
|
|
|
|
|
|
|
| 49 |
|
| 50 |
Follow these steps to use the application:
|
| 51 |
|
|
@@ -62,10 +66,8 @@ iface = gr.Interface(
|
|
| 62 |
gr.components.Image(type="pil"),
|
| 63 |
gr.components.Textbox(label="Regression Info")
|
| 64 |
],
|
| 65 |
-
|
| 66 |
-
|
| 67 |
-
layout="vertical"
|
| 68 |
-
).add_instructions(tutorial_markdown)
|
| 69 |
|
| 70 |
# Launch the app
|
| 71 |
if __name__ == "__main__":
|
|
|
|
| 43 |
|
| 44 |
return image, coef_info
|
| 45 |
|
| 46 |
+
# Tutorial and Description Markdown
|
| 47 |
+
description_markdown = """
|
| 48 |
+
## Automatic Linear Regression Modeling
|
| 49 |
+
|
| 50 |
+
Upload a CSV file with two columns. The first column will be used as X (independent variable) and the second as Y (dependent variable).
|
| 51 |
+
|
| 52 |
+
### Tutorial
|
| 53 |
|
| 54 |
Follow these steps to use the application:
|
| 55 |
|
|
|
|
| 66 |
gr.components.Image(type="pil"),
|
| 67 |
gr.components.Textbox(label="Regression Info")
|
| 68 |
],
|
| 69 |
+
description=description_markdown
|
| 70 |
+
)
|
|
|
|
|
|
|
| 71 |
|
| 72 |
# Launch the app
|
| 73 |
if __name__ == "__main__":
|