Update app.py
Browse files
app.py
CHANGED
|
@@ -72,7 +72,8 @@ def create_interface():
|
|
| 72 |
margin: 0 auto !important;
|
| 73 |
}
|
| 74 |
|
| 75 |
-
|
|
|
|
| 76 |
border: 3px dashed #667eea !important;
|
| 77 |
border-radius: 15px !important;
|
| 78 |
padding: 40px 20px !important;
|
|
@@ -82,7 +83,7 @@ def create_interface():
|
|
| 82 |
min-height: 200px !important;
|
| 83 |
}
|
| 84 |
|
| 85 |
-
.
|
| 86 |
border-color: #764ba2 !important;
|
| 87 |
background: linear-gradient(135deg, #e8f0ff 0%, #d8e8ff 100%) !important;
|
| 88 |
transform: translateY(-2px) !important;
|
|
@@ -104,7 +105,7 @@ def create_interface():
|
|
| 104 |
|
| 105 |
/* ریسپانسیو برای موبایل */
|
| 106 |
@media (max-width: 768px) {
|
| 107 |
-
.
|
| 108 |
min-height: 180px !important;
|
| 109 |
padding: 30px 15px !important;
|
| 110 |
}
|
|
@@ -160,7 +161,8 @@ def create_interface():
|
|
| 160 |
file_types=[".mp4", ".avi", ".mov", ".mkv", ".webm"],
|
| 161 |
type="filepath",
|
| 162 |
file_count="single",
|
| 163 |
-
height=200
|
|
|
|
| 164 |
)
|
| 165 |
|
| 166 |
# آپلود صوت
|
|
@@ -182,14 +184,16 @@ def create_interface():
|
|
| 182 |
file_types=[".mp3", ".wav", ".m4a", ".aac", ".ogg"],
|
| 183 |
type="filepath",
|
| 184 |
file_count="single",
|
| 185 |
-
height=200
|
|
|
|
| 186 |
)
|
| 187 |
|
| 188 |
# دکمه تولید
|
| 189 |
generate_btn = gr.Button(
|
| 190 |
"🚀 تولید با LatentSync AI",
|
| 191 |
variant="primary",
|
| 192 |
-
size="lg"
|
|
|
|
| 193 |
)
|
| 194 |
|
| 195 |
with gr.Column(scale=1):
|
|
|
|
| 72 |
margin: 0 auto !important;
|
| 73 |
}
|
| 74 |
|
| 75 |
+
/* استایلهای آپلود */
|
| 76 |
+
.file-upload {
|
| 77 |
border: 3px dashed #667eea !important;
|
| 78 |
border-radius: 15px !important;
|
| 79 |
padding: 40px 20px !important;
|
|
|
|
| 83 |
min-height: 200px !important;
|
| 84 |
}
|
| 85 |
|
| 86 |
+
.file-upload:hover {
|
| 87 |
border-color: #764ba2 !important;
|
| 88 |
background: linear-gradient(135deg, #e8f0ff 0%, #d8e8ff 100%) !important;
|
| 89 |
transform: translateY(-2px) !important;
|
|
|
|
| 105 |
|
| 106 |
/* ریسپانسیو برای موبایل */
|
| 107 |
@media (max-width: 768px) {
|
| 108 |
+
.file-upload {
|
| 109 |
min-height: 180px !important;
|
| 110 |
padding: 30px 15px !important;
|
| 111 |
}
|
|
|
|
| 161 |
file_types=[".mp4", ".avi", ".mov", ".mkv", ".webm"],
|
| 162 |
type="filepath",
|
| 163 |
file_count="single",
|
| 164 |
+
height=200,
|
| 165 |
+
elem_id="video-upload"
|
| 166 |
)
|
| 167 |
|
| 168 |
# آپلود صوت
|
|
|
|
| 184 |
file_types=[".mp3", ".wav", ".m4a", ".aac", ".ogg"],
|
| 185 |
type="filepath",
|
| 186 |
file_count="single",
|
| 187 |
+
height=200,
|
| 188 |
+
elem_id="audio-upload"
|
| 189 |
)
|
| 190 |
|
| 191 |
# دکمه تولید
|
| 192 |
generate_btn = gr.Button(
|
| 193 |
"🚀 تولید با LatentSync AI",
|
| 194 |
variant="primary",
|
| 195 |
+
size="lg",
|
| 196 |
+
elem_classes=["generate-btn"]
|
| 197 |
)
|
| 198 |
|
| 199 |
with gr.Column(scale=1):
|