Spaces:
Sleeping
Sleeping
Commit
·
c3f8b37
1
Parent(s):
10f92df
Update app.py
Browse files
app.py
CHANGED
@@ -96,12 +96,13 @@ with gr.Blocks(title="Josiah's Gradio Playground") as playground:
|
|
96 |
This uses gradio's HTML component and gradio lite to work.
|
97 |
You can find the documentation for that [here.](https://www.gradio.app/guides/gradio-lite)
|
98 |
""")
|
99 |
-
with gr.
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
|
|
106 |
|
107 |
playground.launch()
|
|
|
96 |
This uses gradio's HTML component and gradio lite to work.
|
97 |
You can find the documentation for that [here.](https://www.gradio.app/guides/gradio-lite)
|
98 |
""")
|
99 |
+
with gr.Row():
|
100 |
+
with gr.Column(scale=1):
|
101 |
+
grUIcode = gr.Textbox(label="Gradio UI code", max_lines=200, placeholder="Code here", value=defaultCode, show_copy_button=True)
|
102 |
+
subButton = gr.Button("Show me!")
|
103 |
+
with gr.Column(scale=1):
|
104 |
+
grUI = gr.HTML(label="Gradio UI")
|
105 |
+
gr.ClearButton(grUI)
|
106 |
+
subButton.click(fn=genGrUI, inputs=grUIcode, outputs= grUI)
|
107 |
|
108 |
playground.launch()
|