Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
# Define the HTML and CSS for the banner
|
| 4 |
+
# We use a markdown component and inject a simple div with inline styling
|
| 5 |
+
banner_content = """
|
| 6 |
+
<div style='
|
| 7 |
+
background-color: #f0f0f0;
|
| 8 |
+
padding: 15px;
|
| 9 |
+
border-radius: 10px;
|
| 10 |
+
text-align: center;
|
| 11 |
+
margin: 20px auto;
|
| 12 |
+
width: fit-content;
|
| 13 |
+
border: 1px solid #ddd;
|
| 14 |
+
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
|
| 15 |
+
'>
|
| 16 |
+
<h2 style='
|
| 17 |
+
margin: 0;
|
| 18 |
+
color: #555;
|
| 19 |
+
font-family: sans-serif;
|
| 20 |
+
'>
|
| 21 |
+
🚧 Work in progress 🚧
|
| 22 |
+
</h2>
|
| 23 |
+
</div>
|
| 24 |
+
"""
|
| 25 |
+
|
| 26 |
+
# Create the Gradio interface using gr.Blocks
|
| 27 |
+
# Blocks gives us more control over the layout
|
| 28 |
+
with gr.Blocks() as demo:
|
| 29 |
+
# Use gr.Markdown to display the HTML content
|
| 30 |
+
gr.Markdown(banner_content)
|
| 31 |
+
|
| 32 |
+
# Launch the demo
|
| 33 |
+
demo.launch()
|