Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -92,8 +92,8 @@ def api_handler(url, html):
|
|
92 |
# Create Gradio Interface for API
|
93 |
interface = gr.Interface(
|
94 |
fn=api_handler,
|
95 |
-
inputs=[gr.
|
96 |
-
outputs=gr.
|
97 |
live=False # No need for live updates
|
98 |
)
|
99 |
|
|
|
92 |
# Create Gradio Interface for API
|
93 |
interface = gr.Interface(
|
94 |
fn=api_handler,
|
95 |
+
inputs=[gr.Textbox(label="URL"), gr.Textbox(label="HTML content", lines=10)],
|
96 |
+
outputs=gr.JSON(),
|
97 |
live=False # No need for live updates
|
98 |
)
|
99 |
|