Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,11 +9,10 @@ import zipfile
|
|
| 9 |
import datetime
|
| 10 |
g_mapping = None
|
| 11 |
|
| 12 |
-
elems =
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
.feedback textarea {font-size: 24px !important}
|
| 17 |
"""
|
| 18 |
|
| 19 |
def download_csv_as_dataframe(url):
|
|
@@ -482,7 +481,7 @@ with gr.Blocks(css=elems) as demo:
|
|
| 482 |
with gr.Row():
|
| 483 |
inp = gr.File(label='Input file/s')
|
| 484 |
with gr.Row():
|
| 485 |
-
bt = gr.Button(value='Clean')
|
| 486 |
#bt1 = gr.Button(value='Restart')
|
| 487 |
|
| 488 |
for _ in range(2):
|
|
@@ -492,7 +491,7 @@ with gr.Blocks(css=elems) as demo:
|
|
| 492 |
with gr.Row():
|
| 493 |
out = gr.File(label='Cleaned files',visible=False)
|
| 494 |
with gr.Row():
|
| 495 |
-
log = gr.Textbox(label='Process log 📄',visible=True
|
| 496 |
|
| 497 |
bt.click(fn = process, inputs=[inp,bt], outputs=[out,log])
|
| 498 |
|
|
|
|
| 9 |
import datetime
|
| 10 |
g_mapping = None
|
| 11 |
|
| 12 |
+
elems = """
|
| 13 |
+
#red-button {
|
| 14 |
+
background: red;
|
| 15 |
+
}
|
|
|
|
| 16 |
"""
|
| 17 |
|
| 18 |
def download_csv_as_dataframe(url):
|
|
|
|
| 481 |
with gr.Row():
|
| 482 |
inp = gr.File(label='Input file/s')
|
| 483 |
with gr.Row():
|
| 484 |
+
bt = gr.Button(value='Clean',elem_id='red-button')
|
| 485 |
#bt1 = gr.Button(value='Restart')
|
| 486 |
|
| 487 |
for _ in range(2):
|
|
|
|
| 491 |
with gr.Row():
|
| 492 |
out = gr.File(label='Cleaned files',visible=False)
|
| 493 |
with gr.Row():
|
| 494 |
+
log = gr.Textbox(label='Process log 📄',visible=True)
|
| 495 |
|
| 496 |
bt.click(fn = process, inputs=[inp,bt], outputs=[out,log])
|
| 497 |
|