Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,22 @@
|
|
| 1 |
from pathlib import Path
|
| 2 |
import gradio as gr
|
| 3 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
def upload_file(filepath):
|
| 5 |
name = Path(filepath).name
|
| 6 |
return [gr.UploadButton(interactive=False),
|
|
@@ -9,7 +25,7 @@ def upload_file(filepath):
|
|
| 9 |
def download_file():
|
| 10 |
return [gr.UploadButton(interactive=True), gr.DownloadButton(interactive=False)]
|
| 11 |
|
| 12 |
-
with gr.Blocks(theme=gr.themes.Base(radius_size=gr.themes.sizes.radius_none)) as demo:
|
| 13 |
tb = gr.Textbox(value = "First upload a file and and then you'll be able download it (but only once!)")
|
| 14 |
with gr.Row():
|
| 15 |
with gr.Column(scale=1):
|
|
|
|
| 1 |
from pathlib import Path
|
| 2 |
import gradio as gr
|
| 3 |
|
| 4 |
+
css = """.hamburger-button {
|
| 5 |
+
width: 30px !important;
|
| 6 |
+
/*max-width: auto !important;*/
|
| 7 |
+
background-color: transparent !important;
|
| 8 |
+
/*color: black !important;*/
|
| 9 |
+
border: none !important;
|
| 10 |
+
/*font-weight: 400 !important;*/
|
| 11 |
+
/*font-size: var(--text_md) !important;*/
|
| 12 |
+
/*box-shadow: none !important;*/
|
| 13 |
+
/*text-align: left !important;*/
|
| 14 |
+
/*justify-content: right !important;*/
|
| 15 |
+
padding: 0 !important;
|
| 16 |
+
/*margin-left: 10px !important;*/
|
| 17 |
+
outline: none !important;
|
| 18 |
+
}"""
|
| 19 |
+
|
| 20 |
def upload_file(filepath):
|
| 21 |
name = Path(filepath).name
|
| 22 |
return [gr.UploadButton(interactive=False),
|
|
|
|
| 25 |
def download_file():
|
| 26 |
return [gr.UploadButton(interactive=True), gr.DownloadButton(interactive=False)]
|
| 27 |
|
| 28 |
+
with gr.Blocks(css=css, theme=gr.themes.Base(radius_size=gr.themes.sizes.radius_none)) as demo:
|
| 29 |
tb = gr.Textbox(value = "First upload a file and and then you'll be able download it (but only once!)")
|
| 30 |
with gr.Row():
|
| 31 |
with gr.Column(scale=1):
|