Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -45,15 +45,15 @@ def process_data(file_name, column1, column2, is_continuous, bins):
|
|
45 |
iface = gr.Interface(
|
46 |
fn=process_data,
|
47 |
inputs=[
|
48 |
-
gr.
|
49 |
-
gr.
|
50 |
-
gr.
|
51 |
-
gr.
|
52 |
-
gr.
|
53 |
],
|
54 |
outputs=[
|
55 |
-
gr.
|
56 |
-
gr.
|
57 |
],
|
58 |
title="数据分布可视化工具",
|
59 |
description="上传数据表格,指定列名称,查看特定数据列分布的可视化结果。"
|
|
|
45 |
iface = gr.Interface(
|
46 |
fn=process_data,
|
47 |
inputs=[
|
48 |
+
gr.File(label="上传数据表格"),
|
49 |
+
gr.Textbox(label="指定第1个数据列名称"),
|
50 |
+
gr.Textbox(label="指定第2个数据列名称"),
|
51 |
+
gr.Checkbox(label="第1列数据是连续值类型", default=False),
|
52 |
+
gr.Number(label="如果第1列是连续值,要分为几组", optional=True),
|
53 |
],
|
54 |
outputs=[
|
55 |
+
gr.Dataframe(type='pandas', label="数据表的前5行"),
|
56 |
+
gr.Image(type='filepath', label="柱形图")
|
57 |
],
|
58 |
title="数据分布可视化工具",
|
59 |
description="上传数据表格,指定列名称,查看特定数据列分布的可视化结果。"
|