Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,6 +56,19 @@ def create_gradio_interface():
|
|
| 56 |
with gr.Blocks() as demo:
|
| 57 |
gr.Markdown("## QR Code Generator and Decoder")
|
| 58 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 59 |
# Tab for generating QR codes
|
| 60 |
with gr.Tab("Generate QR Code"):
|
| 61 |
with gr.Row():
|
|
@@ -104,4 +117,4 @@ def create_gradio_interface():
|
|
| 104 |
|
| 105 |
|
| 106 |
# Run the Gradio interface
|
| 107 |
-
create_gradio_interface()
|
|
|
|
| 56 |
with gr.Blocks() as demo:
|
| 57 |
gr.Markdown("## QR Code Generator and Decoder")
|
| 58 |
|
| 59 |
+
# Add the logo at the bottom center
|
| 60 |
+
demo.append(gr.HTML("""
|
| 61 |
+
<div style="
|
| 62 |
+
position: fixed;
|
| 63 |
+
bottom: 20px;
|
| 64 |
+
left: 50%;
|
| 65 |
+
transform: translateX(-50%);
|
| 66 |
+
z-index: 1000;
|
| 67 |
+
">
|
| 68 |
+
<img src="file/space_logo.png" alt="Space Logo" style="width: 150px; height: auto;">
|
| 69 |
+
</div>
|
| 70 |
+
"""))
|
| 71 |
+
|
| 72 |
# Tab for generating QR codes
|
| 73 |
with gr.Tab("Generate QR Code"):
|
| 74 |
with gr.Row():
|
|
|
|
| 117 |
|
| 118 |
|
| 119 |
# Run the Gradio interface
|
| 120 |
+
create_gradio_interface()
|