Spaces:
Sleeping
Sleeping
enforce max lines
Browse files
app.py
CHANGED
@@ -77,6 +77,7 @@ with gr.Blocks(theme=gr.themes.Base()) as app:
|
|
77 |
label="JSON Schema",
|
78 |
value=default_schema,
|
79 |
lines=15,
|
|
|
80 |
placeholder="Enter your JSON schema here...",
|
81 |
)
|
82 |
|
@@ -84,7 +85,7 @@ with gr.Blocks(theme=gr.themes.Base()) as app:
|
|
84 |
|
85 |
with gr.Column():
|
86 |
mock_output = gr.Textbox(
|
87 |
-
label="Generated Mock JSON", lines=15, interactive=False
|
88 |
)
|
89 |
|
90 |
error_output = gr.Textbox(label="Errors", visible=False, interactive=False)
|
|
|
77 |
label="JSON Schema",
|
78 |
value=default_schema,
|
79 |
lines=15,
|
80 |
+
max_lines=15,
|
81 |
placeholder="Enter your JSON schema here...",
|
82 |
)
|
83 |
|
|
|
85 |
|
86 |
with gr.Column():
|
87 |
mock_output = gr.Textbox(
|
88 |
+
label="Generated Mock JSON", lines=15, max_lines=15, interactive=False
|
89 |
)
|
90 |
|
91 |
error_output = gr.Textbox(label="Errors", visible=False, interactive=False)
|