Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,9 +56,14 @@ def process_input(html_content):
|
|
| 56 |
with gr.Blocks() as interface:
|
| 57 |
with gr.Column():
|
| 58 |
gr.Markdown("## HTML Content Parser")
|
| 59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
parse_button = gr.Button("Parse Content")
|
| 61 |
-
|
| 62 |
|
| 63 |
parse_button.click(fn=process_input, inputs=html_input, outputs=parsed_output)
|
| 64 |
|
|
|
|
| 56 |
with gr.Blocks() as interface:
|
| 57 |
with gr.Column():
|
| 58 |
gr.Markdown("## HTML Content Parser")
|
| 59 |
+
html_input = gr.Textbox(
|
| 60 |
+
label="Paste HTML Content",
|
| 61 |
+
placeholder="Paste your HTML content here...",
|
| 62 |
+
lines=5, # Restrict initial height
|
| 63 |
+
max_lines=10 # Maximum height before scrolling
|
| 64 |
+
)
|
| 65 |
parse_button = gr.Button("Parse Content")
|
| 66 |
+
parsed_output = gr.Dataframe(label="Parsed Data")
|
| 67 |
|
| 68 |
parse_button.click(fn=process_input, inputs=html_input, outputs=parsed_output)
|
| 69 |
|