Upload 6 files
Browse files- api_client.py +1 -2
- page_modules/process_video.py +23 -2
api_client.py
CHANGED
|
@@ -482,8 +482,7 @@ def describe_image_with_svision(image_path: str, is_face: bool = True) -> Tuple[
|
|
| 482 |
prompt,
|
| 483 |
max_tokens,
|
| 484 |
0.7,
|
| 485 |
-
api_name="/describe"
|
| 486 |
-
timeout=int(os.getenv("SVISION_TIMEOUT", "180")),
|
| 487 |
)
|
| 488 |
if result and isinstance(result, str) and result.strip():
|
| 489 |
break
|
|
|
|
| 482 |
prompt,
|
| 483 |
max_tokens,
|
| 484 |
0.7,
|
| 485 |
+
api_name="/describe"
|
|
|
|
| 486 |
)
|
| 487 |
if result and isinstance(result, str) and result.strip():
|
| 488 |
break
|
page_modules/process_video.py
CHANGED
|
@@ -139,11 +139,12 @@ def render_process_video_page(api, backend_base_url: str) -> None:
|
|
| 139 |
overflow: hidden;
|
| 140 |
}
|
| 141 |
|
| 142 |
-
/* Im谩genes con dimensiones consistentes */
|
| 143 |
.stImage > img {
|
| 144 |
max-width: 100%;
|
| 145 |
height: auto;
|
| 146 |
object-fit: contain;
|
|
|
|
| 147 |
}
|
| 148 |
|
| 149 |
/* Estabilizar reproductor de audio con altura fija */
|
|
@@ -169,15 +170,35 @@ def render_process_video_page(api, backend_base_url: str) -> None:
|
|
| 169 |
white-space: nowrap;
|
| 170 |
}
|
| 171 |
|
| 172 |
-
/* Columnas con ancho fijo para evitar reflow */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 173 |
div[data-testid="column"] > div {
|
| 174 |
contain: layout style;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
}
|
| 176 |
|
| 177 |
/* Prevenir cambios de layout al cargar contenido */
|
| 178 |
[data-testid="stVerticalBlock"] > div {
|
| 179 |
will-change: auto;
|
| 180 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 181 |
</style>
|
| 182 |
""", unsafe_allow_html=True)
|
| 183 |
|
|
|
|
| 139 |
overflow: hidden;
|
| 140 |
}
|
| 141 |
|
| 142 |
+
/* Im谩genes con dimensiones consistentes y sin vibraci贸n */
|
| 143 |
.stImage > img {
|
| 144 |
max-width: 100%;
|
| 145 |
height: auto;
|
| 146 |
object-fit: contain;
|
| 147 |
+
display: block;
|
| 148 |
}
|
| 149 |
|
| 150 |
/* Estabilizar reproductor de audio con altura fija */
|
|
|
|
| 170 |
white-space: nowrap;
|
| 171 |
}
|
| 172 |
|
| 173 |
+
/* Columnas con ancho fijo para evitar reflow horizontal */
|
| 174 |
+
div[data-testid="column"] {
|
| 175 |
+
min-width: 0 !important;
|
| 176 |
+
flex-shrink: 0 !important;
|
| 177 |
+
}
|
| 178 |
+
|
| 179 |
div[data-testid="column"] > div {
|
| 180 |
contain: layout style;
|
| 181 |
+
min-width: 0;
|
| 182 |
+
}
|
| 183 |
+
|
| 184 |
+
/* Prevenir vibraci贸n horizontal en contenedores de columnas */
|
| 185 |
+
[data-testid="stHorizontalBlock"] {
|
| 186 |
+
gap: 1rem !important;
|
| 187 |
+
}
|
| 188 |
+
|
| 189 |
+
[data-testid="stHorizontalBlock"] > div {
|
| 190 |
+
flex-shrink: 0 !important;
|
| 191 |
}
|
| 192 |
|
| 193 |
/* Prevenir cambios de layout al cargar contenido */
|
| 194 |
[data-testid="stVerticalBlock"] > div {
|
| 195 |
will-change: auto;
|
| 196 |
}
|
| 197 |
+
|
| 198 |
+
/* Forzar que las columnas mantengan su proporci贸n sin vibrar */
|
| 199 |
+
.row-widget.stHorizontalBlock {
|
| 200 |
+
width: 100% !important;
|
| 201 |
+
}
|
| 202 |
</style>
|
| 203 |
""", unsafe_allow_html=True)
|
| 204 |
|