Update app.py
Browse filesEdit by AlexaT 20230518
-amend style and remove footer
app.py
CHANGED
@@ -183,11 +183,16 @@ css = """
|
|
183 |
:root,.gradio-container-3-20-1 :host {
|
184 |
--color-border-primary:transparent;
|
185 |
}
|
|
|
186 |
#submit_button{
|
187 |
background-color: #fff;
|
188 |
font-weight: bold;
|
189 |
box-shadow: 5px 10px 18px #fff;
|
190 |
}
|
|
|
|
|
|
|
|
|
191 |
"""
|
192 |
|
193 |
title = 'AI Pdf 归纳器'
|
@@ -210,7 +215,6 @@ with gr.Blocks(css=css) as demo:
|
|
210 |
btn = gr.Button(value='提交', elem_id="submit_button")
|
211 |
btn.style(full_width=True)
|
212 |
|
213 |
-
with gr.Group():
|
214 |
answer = gr.Textbox(label='你的提问的答案是:', elem_id="answer")
|
215 |
|
216 |
btn.click(question_answer, inputs=[url, file, question], outputs=[answer])
|
|
|
183 |
:root,.gradio-container-3-20-1 :host {
|
184 |
--color-border-primary:transparent;
|
185 |
}
|
186 |
+
|
187 |
#submit_button{
|
188 |
background-color: #fff;
|
189 |
font-weight: bold;
|
190 |
box-shadow: 5px 10px 18px #fff;
|
191 |
}
|
192 |
+
|
193 |
+
footer {
|
194 |
+
visibility: hidden;
|
195 |
+
}
|
196 |
"""
|
197 |
|
198 |
title = 'AI Pdf 归纳器'
|
|
|
215 |
btn = gr.Button(value='提交', elem_id="submit_button")
|
216 |
btn.style(full_width=True)
|
217 |
|
|
|
218 |
answer = gr.Textbox(label='你的提问的答案是:', elem_id="answer")
|
219 |
|
220 |
btn.click(question_answer, inputs=[url, file, question], outputs=[answer])
|