josiauhlol commited on
Commit
c3f8b37
·
1 Parent(s): 10f92df

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -7
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.Column(scale=1):
100
- grUIcode = gr.Textbox(label="Gradio UI code", max_lines=200, placeholder="Code here", value=defaultCode, show_copy_button=True)
101
- subButton = gr.Button("Show me!")
102
- with gr.Column(scale=1):
103
- grUI = gr.HTML(label="Gradio UI")
104
- gr.ClearButton(grUI)
105
- subButton.click(fn=genGrUI, inputs=grUIcode, outputs= grUI)
 
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()