Spaces:
Running
on
L4
Running
on
L4
Update app.py
Browse files
app.py
CHANGED
@@ -120,7 +120,10 @@ def predict(content, policy):
|
|
120 |
|
121 |
|
122 |
# Create the interface
|
|
|
123 |
with gr.Blocks() as demo:
|
|
|
|
|
124 |
with gr.Row():
|
125 |
# Left column with inputs
|
126 |
with gr.Column(scale=1):
|
@@ -130,6 +133,7 @@ with gr.Blocks() as demo:
|
|
130 |
# Right column with output
|
131 |
with gr.Column(scale=1):
|
132 |
output = gr.Textbox(label="Result")
|
|
|
133 |
notes = gr.Markdown("""
|
134 |
# Usage Instructions
|
135 |
|
@@ -149,7 +153,6 @@ with gr.Blocks() as demo:
|
|
149 |
""")
|
150 |
|
151 |
# Button below inputs
|
152 |
-
submit_btn = gr.Button("Submit")
|
153 |
|
154 |
# Set up the processing function
|
155 |
submit_btn.click(
|
|
|
120 |
|
121 |
|
122 |
# Create the interface
|
123 |
+
|
124 |
with gr.Blocks() as demo:
|
125 |
+
gr.Markdown("# My Interactive Interface")
|
126 |
+
|
127 |
with gr.Row():
|
128 |
# Left column with inputs
|
129 |
with gr.Column(scale=1):
|
|
|
133 |
# Right column with output
|
134 |
with gr.Column(scale=1):
|
135 |
output = gr.Textbox(label="Result")
|
136 |
+
submit_btn = gr.Button("Submit")
|
137 |
notes = gr.Markdown("""
|
138 |
# Usage Instructions
|
139 |
|
|
|
153 |
""")
|
154 |
|
155 |
# Button below inputs
|
|
|
156 |
|
157 |
# Set up the processing function
|
158 |
submit_btn.click(
|