Spaces:
Sleeping
Sleeping
Trying to prevent add columns
Browse files
app.py
CHANGED
@@ -35,7 +35,15 @@ def compute_pca(data):
|
|
35 |
def text_editor_app():
|
36 |
with gr.Blocks() as demo:
|
37 |
# Use a DataFrame component for inputs
|
38 |
-
data_input = gr.Dataframe(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
39 |
|
40 |
# Button to run the analysis
|
41 |
analyze_button = gr.Button("Run Analysis")
|
|
|
35 |
def text_editor_app():
|
36 |
with gr.Blocks() as demo:
|
37 |
# Use a DataFrame component for inputs
|
38 |
+
data_input = gr.Dataframe(
|
39 |
+
headers=["Identifier", "Text"],
|
40 |
+
datatype=["str", "str"],
|
41 |
+
row_count=(4, "dynamic"),
|
42 |
+
col_count=(2, "fixed"),
|
43 |
+
max_cols=2,
|
44 |
+
label="Input Data",
|
45 |
+
wrap=True
|
46 |
+
)
|
47 |
|
48 |
# Button to run the analysis
|
49 |
analyze_button = gr.Button("Run Analysis")
|