Spaces:
Runtime error
Runtime error
button css
Browse files
app.py
CHANGED
@@ -98,7 +98,8 @@ def submit_question(question):
|
|
98 |
|
99 |
css = """
|
100 |
#col-container {max-width: 80%; margin-left: auto; margin-right: auto;}
|
101 |
-
#arithmedics-img {width:
|
|
|
102 |
#chatbox {min-height: 400px; .scroll-container {position: absolute; top: 0; right:0;}}
|
103 |
#header {text-align: center;}
|
104 |
#total_tokens_str {text-align: right; font-size: 0.8em; color: #666;}
|
@@ -118,7 +119,11 @@ with gr.Blocks(css=css, title='AASLD Practice Guidelines ') as demo:
|
|
118 |
show_label=False,
|
119 |
placeholder='Enter your question',
|
120 |
visible=True, container=False)
|
121 |
-
btn_submit = gr.Button(
|
|
|
|
|
|
|
|
|
122 |
question = gr.HTML()
|
123 |
answer = gr.HTML()
|
124 |
# chatbot = gr.Chatbot(
|
|
|
98 |
|
99 |
css = """
|
100 |
#col-container {max-width: 80%; margin-left: auto; margin-right: auto;}
|
101 |
+
#arithmedics-img {width: 200px; display: block; margin-left: auto; margin-right: auto;}
|
102 |
+
#submitbtn {width: 50%}
|
103 |
#chatbox {min-height: 400px; .scroll-container {position: absolute; top: 0; right:0;}}
|
104 |
#header {text-align: center;}
|
105 |
#total_tokens_str {text-align: right; font-size: 0.8em; color: #666;}
|
|
|
119 |
show_label=False,
|
120 |
placeholder='Enter your question',
|
121 |
visible=True, container=False)
|
122 |
+
btn_submit = gr.Button(
|
123 |
+
'Ask AASLD Guidelines',
|
124 |
+
variant='primary',
|
125 |
+
elem_id='submitbtn',
|
126 |
+
size='sm')
|
127 |
question = gr.HTML()
|
128 |
answer = gr.HTML()
|
129 |
# chatbot = gr.Chatbot(
|