Spaces:
Runtime error
Runtime error
Riddhi Bhagwat
commited on
Commit
·
898e35c
1
Parent(s):
01c3274
adjustment in add language icon
Browse files- app/app.py +12 -2
- app/feel-add-icon.png +0 -0
app/app.py
CHANGED
|
@@ -448,8 +448,18 @@ with gr.Blocks(css=css) as demo:
|
|
| 448 |
choices=list(LANGUAGES.keys()), label="Language", interactive=True
|
| 449 |
)
|
| 450 |
|
| 451 |
-
|
| 452 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 453 |
|
| 454 |
session_id = gr.Textbox(
|
| 455 |
interactive=False,
|
|
|
|
| 448 |
choices=list(LANGUAGES.keys()), label="Language", interactive=True
|
| 449 |
)
|
| 450 |
|
| 451 |
+
with gr.Blocks(css="""
|
| 452 |
+
#add-language-btn {
|
| 453 |
+
background: url('os.path.abspath("app/feel-add-icon.png")') no-repeat center;
|
| 454 |
+
background-size: contain;
|
| 455 |
+
width: 50px;
|
| 456 |
+
height: 50px;
|
| 457 |
+
border: none;
|
| 458 |
+
cursor: pointer;
|
| 459 |
+
}
|
| 460 |
+
""") as demo:
|
| 461 |
+
add_button = gr.Button("", elem_id="add-language-btn")
|
| 462 |
+
output = gr.Textbox(label="Status")
|
| 463 |
|
| 464 |
session_id = gr.Textbox(
|
| 465 |
interactive=False,
|
app/feel-add-icon.png
ADDED
|
|