fix
Browse files- app.py +0 -3
- poster/poster.py +7 -1
app.py
CHANGED
|
@@ -130,9 +130,6 @@ def create_interface():
|
|
| 130 |
theme=gr.themes.Default(), # 使用Light主题
|
| 131 |
js=js_func, # 添加JavaScript强制Light模式
|
| 132 |
css="""
|
| 133 |
-
.gradio-container {
|
| 134 |
-
max-width: 1600px !important;
|
| 135 |
-
}
|
| 136 |
.title {
|
| 137 |
text-align: center;
|
| 138 |
margin-bottom: 1rem;
|
|
|
|
| 130 |
theme=gr.themes.Default(), # 使用Light主题
|
| 131 |
js=js_func, # 添加JavaScript强制Light模式
|
| 132 |
css="""
|
|
|
|
|
|
|
|
|
|
| 133 |
.title {
|
| 134 |
text-align: center;
|
| 135 |
margin-bottom: 1rem;
|
poster/poster.py
CHANGED
|
@@ -238,10 +238,16 @@ def generate_html_v2(vendor: str, model: str, poster: BaseModel, figures: list[s
|
|
| 238 |
margin-bottom: 1rem;
|
| 239 |
font-size: 1.875rem;
|
| 240 |
font-weight: bold;
|
|
|
|
| 241 |
}
|
| 242 |
|
| 243 |
.poster-author {
|
| 244 |
margin-bottom: 0.5rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 245 |
}
|
| 246 |
|
| 247 |
.poster-content {
|
|
@@ -389,7 +395,7 @@ def generate_html_v2(vendor: str, model: str, poster: BaseModel, figures: list[s
|
|
| 389 |
/ poster_total_size
|
| 390 |
)
|
| 391 |
|
| 392 |
-
max_attempts =
|
| 393 |
attempt = 0
|
| 394 |
|
| 395 |
min_proportion = float('inf')
|
|
|
|
| 238 |
margin-bottom: 1rem;
|
| 239 |
font-size: 1.875rem;
|
| 240 |
font-weight: bold;
|
| 241 |
+
color: inherit;
|
| 242 |
}
|
| 243 |
|
| 244 |
.poster-author {
|
| 245 |
margin-bottom: 0.5rem;
|
| 246 |
+
color: inherit;
|
| 247 |
+
}
|
| 248 |
+
|
| 249 |
+
.poster-affiliation {
|
| 250 |
+
color: inherit;
|
| 251 |
}
|
| 252 |
|
| 253 |
.poster-content {
|
|
|
|
| 395 |
/ poster_total_size
|
| 396 |
)
|
| 397 |
|
| 398 |
+
max_attempts = 5
|
| 399 |
attempt = 0
|
| 400 |
|
| 401 |
min_proportion = float('inf')
|