Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -124,6 +124,35 @@ custom_css = """
|
|
| 124 |
background-color: #fff3e0;
|
| 125 |
border-radius: 5px;
|
| 126 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 127 |
"""
|
| 128 |
|
| 129 |
# Create the Gradio interface
|
|
@@ -136,6 +165,18 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft(), title="AI Video Generator
|
|
| 136 |
"""
|
| 137 |
)
|
| 138 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 139 |
gr.HTML(
|
| 140 |
"""
|
| 141 |
<div class="auth-warning">
|
|
@@ -266,6 +307,9 @@ with gr.Blocks(css=custom_css, theme=gr.themes.Soft(), title="AI Video Generator
|
|
| 266 |
- For image-to-video, describe natural motions that fit the image
|
| 267 |
- Use high-quality input images for better results
|
| 268 |
- Experiment with different prompts to get the desired effect
|
|
|
|
|
|
|
|
|
|
| 269 |
"""
|
| 270 |
)
|
| 271 |
|
|
|
|
| 124 |
background-color: #fff3e0;
|
| 125 |
border-radius: 5px;
|
| 126 |
}
|
| 127 |
+
.mobile-link-container {
|
| 128 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 129 |
+
padding: 1.5em;
|
| 130 |
+
border-radius: 10px;
|
| 131 |
+
text-align: center;
|
| 132 |
+
margin: 1em 0;
|
| 133 |
+
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
|
| 134 |
+
}
|
| 135 |
+
.mobile-link {
|
| 136 |
+
color: white !important;
|
| 137 |
+
font-size: 1.2em;
|
| 138 |
+
font-weight: bold;
|
| 139 |
+
text-decoration: none;
|
| 140 |
+
display: inline-block;
|
| 141 |
+
padding: 0.5em 1.5em;
|
| 142 |
+
background: rgba(255, 255, 255, 0.2);
|
| 143 |
+
border-radius: 25px;
|
| 144 |
+
transition: all 0.3s ease;
|
| 145 |
+
}
|
| 146 |
+
.mobile-link:hover {
|
| 147 |
+
background: rgba(255, 255, 255, 0.3);
|
| 148 |
+
transform: translateY(-2px);
|
| 149 |
+
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
|
| 150 |
+
}
|
| 151 |
+
.mobile-text {
|
| 152 |
+
color: white;
|
| 153 |
+
margin-bottom: 0.5em;
|
| 154 |
+
font-size: 1.1em;
|
| 155 |
+
}
|
| 156 |
"""
|
| 157 |
|
| 158 |
# Create the Gradio interface
|
|
|
|
| 165 |
"""
|
| 166 |
)
|
| 167 |
|
| 168 |
+
# Add mobile link section
|
| 169 |
+
gr.HTML(
|
| 170 |
+
"""
|
| 171 |
+
<div class="mobile-link-container">
|
| 172 |
+
<div class="mobile-text">📱 On mobile? Use the optimized version:</div>
|
| 173 |
+
<a href="https://akhaliq-veo3-1-fast.hf.space" target="_blank" class="mobile-link">
|
| 174 |
+
🚀 Open Mobile Version
|
| 175 |
+
</a>
|
| 176 |
+
</div>
|
| 177 |
+
"""
|
| 178 |
+
)
|
| 179 |
+
|
| 180 |
gr.HTML(
|
| 181 |
"""
|
| 182 |
<div class="auth-warning">
|
|
|
|
| 307 |
- For image-to-video, describe natural motions that fit the image
|
| 308 |
- Use high-quality input images for better results
|
| 309 |
- Experiment with different prompts to get the desired effect
|
| 310 |
+
|
| 311 |
+
### Mobile Users:
|
| 312 |
+
- For the best mobile experience, use the optimized version at: https://akhaliq-veo3-1-fast.hf.space
|
| 313 |
"""
|
| 314 |
)
|
| 315 |
|