Spaces:
Sleeping
Sleeping
Update app.py
Browse fileschanged console css to try to make it like command prompt
app.py
CHANGED
|
@@ -382,6 +382,21 @@ a_random_object = random.choice(["⇒", "↣", "↠", "→"])
|
|
| 382 |
|
| 383 |
|
| 384 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 385 |
# Define the Gradio interface
|
| 386 |
interface = gr.Interface(
|
| 387 |
fn=process_excel, # The function to process the uploaded file
|
|
@@ -392,11 +407,18 @@ interface = gr.Interface(
|
|
| 392 |
# outputs=gr.File(label="Download Processed Excel File"), # File download output
|
| 393 |
# outputs=gr.File(label="Download the processed Excel File containing the ** Project Proposals ** for each Location~Problem paired combination"), # File download output
|
| 394 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 395 |
outputs=[
|
| 396 |
-
gr.
|
| 397 |
-
gr.Textbox(label="Console Messages", lines=10, interactive=False) # Console messages output
|
|
|
|
| 398 |
],
|
| 399 |
|
|
|
|
| 400 |
# title="Excel File Uploader",
|
| 401 |
# title="Upload Excel file containing #TaxDirections → Download HyperLocal Project Proposals\n",
|
| 402 |
|
|
|
|
| 382 |
|
| 383 |
|
| 384 |
|
| 385 |
+
|
| 386 |
+
# Define custom CSS for the console window
|
| 387 |
+
console_css = """
|
| 388 |
+
<style>
|
| 389 |
+
#console-messages label {
|
| 390 |
+
color: white !important;
|
| 391 |
+
}
|
| 392 |
+
#console-messages textarea {
|
| 393 |
+
background-color: black !important;
|
| 394 |
+
color: white !important;
|
| 395 |
+
}
|
| 396 |
+
</style>
|
| 397 |
+
"""
|
| 398 |
+
|
| 399 |
+
|
| 400 |
# Define the Gradio interface
|
| 401 |
interface = gr.Interface(
|
| 402 |
fn=process_excel, # The function to process the uploaded file
|
|
|
|
| 407 |
# outputs=gr.File(label="Download Processed Excel File"), # File download output
|
| 408 |
# outputs=gr.File(label="Download the processed Excel File containing the ** Project Proposals ** for each Location~Problem paired combination"), # File download output
|
| 409 |
|
| 410 |
+
# outputs=[
|
| 411 |
+
# gr.File(label="Download the processed Excel File containing the ** Project Proposals ** for each Location~Problem paired combination"), # File download output
|
| 412 |
+
# gr.Textbox(label="Console Messages", lines=10, interactive=False) # Console messages output
|
| 413 |
+
# ],
|
| 414 |
+
# Use either below or above format
|
| 415 |
outputs=[
|
| 416 |
+
gr.HTML(console_css), # Add the custom CSS
|
| 417 |
+
gr.Textbox(label="Console Messages", lines=10, interactive=False), # Console messages output
|
| 418 |
+
gr.File(label="Download the processed Excel File containing the ** Project Proposals ** for each Location~Problem paired combination") # File download output
|
| 419 |
],
|
| 420 |
|
| 421 |
+
|
| 422 |
# title="Excel File Uploader",
|
| 423 |
# title="Upload Excel file containing #TaxDirections → Download HyperLocal Project Proposals\n",
|
| 424 |
|