Spaces:
Sleeping
Sleeping
Update ContentGradio.py
Browse files- ContentGradio.py +3 -2
ContentGradio.py
CHANGED
@@ -46,15 +46,16 @@ def create_header():
|
|
46 |
# Create the user guidance section
|
47 |
def create_user_guidance():
|
48 |
with gr.Row():
|
49 |
-
gr.Markdown("<div id='user-guidance'>Please enter
|
50 |
|
51 |
# Create the main content section
|
52 |
def create_main():
|
53 |
with gr.Row():
|
54 |
with gr.Column():
|
55 |
user_input = gr.Textbox(label="Your Input", placeholder="Enter something here...")
|
56 |
-
user_input.submit(process_input, inputs=user_input, outputs=output)
|
57 |
output = gr.Textbox(label="Output", interactive=False)
|
|
|
|
|
58 |
|
59 |
return user_input, output # Return both input and output components
|
60 |
|
|
|
46 |
# Create the user guidance section
|
47 |
def create_user_guidance():
|
48 |
with gr.Row():
|
49 |
+
gr.Markdown("<div id='user-guidance'>Please enter text below to get started. Select one of the examples to see the classfication results.</div>")
|
50 |
|
51 |
# Create the main content section
|
52 |
def create_main():
|
53 |
with gr.Row():
|
54 |
with gr.Column():
|
55 |
user_input = gr.Textbox(label="Your Input", placeholder="Enter something here...")
|
|
|
56 |
output = gr.Textbox(label="Output", interactive=False)
|
57 |
+
# move this down to ensure that output it defined
|
58 |
+
user_input.submit(process_input, inputs=user_input, outputs=output)
|
59 |
|
60 |
return user_input, output # Return both input and output components
|
61 |
|