Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -74,12 +74,13 @@ css = """
|
|
| 74 |
font-size: 36px;
|
| 75 |
font-weight: bold;
|
| 76 |
margin-bottom: 10px;
|
|
|
|
| 77 |
}
|
| 78 |
|
| 79 |
#header-subtitle {
|
| 80 |
font-size: 18px;
|
| 81 |
margin-bottom: 20px;
|
| 82 |
-
color: #
|
| 83 |
}
|
| 84 |
|
| 85 |
#main-container {
|
|
@@ -87,22 +88,37 @@ css = """
|
|
| 87 |
margin: 0 auto;
|
| 88 |
padding: 20px;
|
| 89 |
border-radius: 12px;
|
| 90 |
-
background
|
| 91 |
-
box-shadow: 0
|
| 92 |
}
|
| 93 |
|
| 94 |
button.primary-button {
|
| 95 |
-
background
|
| 96 |
color: white;
|
| 97 |
border: none;
|
| 98 |
-
padding:
|
| 99 |
-
border-radius:
|
| 100 |
font-size: 16px;
|
| 101 |
cursor: pointer;
|
|
|
|
|
|
|
| 102 |
}
|
| 103 |
|
| 104 |
button.primary-button:hover {
|
| 105 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 106 |
}
|
| 107 |
"""
|
| 108 |
|
|
@@ -113,7 +129,7 @@ with gr.Blocks(css=css) as demo:
|
|
| 113 |
<div id="header-subtitle">Transform your images into descriptive captions and immersive soundscapes.</div>
|
| 114 |
""")
|
| 115 |
|
| 116 |
-
with gr.
|
| 117 |
gr.Markdown("""
|
| 118 |
### How It Works
|
| 119 |
1. **Upload an Image**: Select an image to analyze.
|
|
@@ -127,14 +143,11 @@ with gr.Blocks(css=css) as demo:
|
|
| 127 |
generate_sound_button = gr.Button("Generate Sound", elem_classes="primary-button")
|
| 128 |
audio_output = gr.Audio(label="Generated Sound Effect", interactive=False)
|
| 129 |
|
| 130 |
-
with gr.
|
| 131 |
gr.Markdown("""
|
| 132 |
## About This App
|
| 133 |
This application uses advanced machine learning models to transform images into text captions and generate matching sound effects. It's a unique blend of visual and auditory creativity, powered by state-of-the-art AI technology.
|
| 134 |
|
| 135 |
-
### Powered By
|
| 136 |
-
- [Hugging Face](https://huggingface.co)
|
| 137 |
-
- [Diffusion Models](https://huggingface.co/models)
|
| 138 |
|
| 139 |
For inquiries, contact us at [contact@bilsimaging.com](mailto:contact@bilsimaging.com).
|
| 140 |
""")
|
|
|
|
| 74 |
font-size: 36px;
|
| 75 |
font-weight: bold;
|
| 76 |
margin-bottom: 10px;
|
| 77 |
+
color: #333333;
|
| 78 |
}
|
| 79 |
|
| 80 |
#header-subtitle {
|
| 81 |
font-size: 18px;
|
| 82 |
margin-bottom: 20px;
|
| 83 |
+
color: #555555;
|
| 84 |
}
|
| 85 |
|
| 86 |
#main-container {
|
|
|
|
| 88 |
margin: 0 auto;
|
| 89 |
padding: 20px;
|
| 90 |
border-radius: 12px;
|
| 91 |
+
background: linear-gradient(135deg, #ffffff, #f0f0f0);
|
| 92 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 93 |
}
|
| 94 |
|
| 95 |
button.primary-button {
|
| 96 |
+
background: linear-gradient(90deg, #007bff, #0056b3);
|
| 97 |
color: white;
|
| 98 |
border: none;
|
| 99 |
+
padding: 12px 24px;
|
| 100 |
+
border-radius: 8px;
|
| 101 |
font-size: 16px;
|
| 102 |
cursor: pointer;
|
| 103 |
+
font-weight: bold;
|
| 104 |
+
transition: transform 0.2s, box-shadow 0.2s;
|
| 105 |
}
|
| 106 |
|
| 107 |
button.primary-button:hover {
|
| 108 |
+
transform: translateY(-3px);
|
| 109 |
+
box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
|
| 110 |
+
}
|
| 111 |
+
|
| 112 |
+
button.primary-button:active {
|
| 113 |
+
transform: translateY(0);
|
| 114 |
+
box-shadow: none;
|
| 115 |
+
}
|
| 116 |
+
|
| 117 |
+
#footer-container {
|
| 118 |
+
margin-top: 30px;
|
| 119 |
+
text-align: center;
|
| 120 |
+
color: #666666;
|
| 121 |
+
font-size: 14px;
|
| 122 |
}
|
| 123 |
"""
|
| 124 |
|
|
|
|
| 129 |
<div id="header-subtitle">Transform your images into descriptive captions and immersive soundscapes.</div>
|
| 130 |
""")
|
| 131 |
|
| 132 |
+
with gr.Box(elem_id="main-container"):
|
| 133 |
gr.Markdown("""
|
| 134 |
### How It Works
|
| 135 |
1. **Upload an Image**: Select an image to analyze.
|
|
|
|
| 143 |
generate_sound_button = gr.Button("Generate Sound", elem_classes="primary-button")
|
| 144 |
audio_output = gr.Audio(label="Generated Sound Effect", interactive=False)
|
| 145 |
|
| 146 |
+
with gr.Box(elem_id="footer-container"):
|
| 147 |
gr.Markdown("""
|
| 148 |
## About This App
|
| 149 |
This application uses advanced machine learning models to transform images into text captions and generate matching sound effects. It's a unique blend of visual and auditory creativity, powered by state-of-the-art AI technology.
|
| 150 |
|
|
|
|
|
|
|
|
|
|
| 151 |
|
| 152 |
For inquiries, contact us at [contact@bilsimaging.com](mailto:contact@bilsimaging.com).
|
| 153 |
""")
|