Update app.py
Browse files
app.py
CHANGED
@@ -434,7 +434,7 @@ def show_status():
|
|
434 |
|
435 |
def show_text_status(status):
|
436 |
ausgabe = f"<div style='text-align: center; font-size: 20px; color: limegreen;'><b>{status}</b></div>"
|
437 |
-
return gr.HTML(value=ausgabe, label="Status", visible=True), ""
|
438 |
|
439 |
|
440 |
########################################
|
@@ -452,9 +452,10 @@ def validate_input(user_input_validate, validate=False):
|
|
452 |
|
453 |
def custom_css():
|
454 |
return """
|
455 |
-
|
456 |
-
|
457 |
-
|
|
|
458 |
}
|
459 |
"""
|
460 |
|
@@ -601,7 +602,7 @@ with gr.Blocks(css=customCSS, theme=themeAlex) as demo:
|
|
601 |
|
602 |
with gr.Tab("Datei hochladen") as tab2:
|
603 |
upload_pdf_files = gr.Files(label="PDF- oder Word-Dateien in Zwischenablage", file_count="multiple")
|
604 |
-
output_text = gr.HTML(value="", label="Status") #gr.Textbox(label="Status", visible = False)
|
605 |
message = gr.Markdown(visible=False, elem_id="popup_message")
|
606 |
renew_button = gr.Button("Dateien hochladen und System aktualisieren", elem_id="renew_button")
|
607 |
file_list = gr.HTML(elem_id="file_list", show_label=False)
|
|
|
434 |
|
435 |
def show_text_status(status):
|
436 |
ausgabe = f"<div style='text-align: center; font-size: 20px; color: limegreen;'><b>{status}</b></div>"
|
437 |
+
return gr.HTML(value=ausgabe, label="Status", visible=True, elem_id="status"), ""
|
438 |
|
439 |
|
440 |
########################################
|
|
|
452 |
|
453 |
def custom_css():
|
454 |
return """
|
455 |
+
#status {
|
456 |
+
color: limegreen !important;
|
457 |
+
text-align: center;
|
458 |
+
font-size: 20px;
|
459 |
}
|
460 |
"""
|
461 |
|
|
|
602 |
|
603 |
with gr.Tab("Datei hochladen") as tab2:
|
604 |
upload_pdf_files = gr.Files(label="PDF- oder Word-Dateien in Zwischenablage", file_count="multiple")
|
605 |
+
output_text = gr.HTML(value="", label="Status", elem_id="status") #gr.Textbox(label="Status", visible = False)
|
606 |
message = gr.Markdown(visible=False, elem_id="popup_message")
|
607 |
renew_button = gr.Button("Dateien hochladen und System aktualisieren", elem_id="renew_button")
|
608 |
file_list = gr.HTML(elem_id="file_list", show_label=False)
|