Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -23,6 +23,21 @@ model = Gemma3ForConditionalGeneration.from_pretrained(
|
|
23 |
MAX_NUM_IMAGES = int(os.getenv("MAX_NUM_IMAGES", "5"))
|
24 |
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
def count_files_in_new_message(paths: list[str]) -> tuple[int, int]:
|
27 |
image_count = 0
|
28 |
video_count = 0
|
@@ -341,7 +356,7 @@ demo = gr.ChatInterface(
|
|
341 |
examples=examples,
|
342 |
run_examples_on_click=False,
|
343 |
cache_examples=False,
|
344 |
-
|
345 |
delete_cache=(1800, 1800),
|
346 |
)
|
347 |
|
|
|
23 |
MAX_NUM_IMAGES = int(os.getenv("MAX_NUM_IMAGES", "5"))
|
24 |
|
25 |
|
26 |
+
css= '''h1 {
|
27 |
+
text-align: center;
|
28 |
+
display: block;
|
29 |
+
}
|
30 |
+
|
31 |
+
#logo {
|
32 |
+
display: block;
|
33 |
+
margin: 0 auto;
|
34 |
+
width: 40%;
|
35 |
+
object-fit: contain;
|
36 |
+
}
|
37 |
+
'''
|
38 |
+
|
39 |
+
|
40 |
+
|
41 |
def count_files_in_new_message(paths: list[str]) -> tuple[int, int]:
|
42 |
image_count = 0
|
43 |
video_count = 0
|
|
|
356 |
examples=examples,
|
357 |
run_examples_on_click=False,
|
358 |
cache_examples=False,
|
359 |
+
css=css,
|
360 |
delete_cache=(1800, 1800),
|
361 |
)
|
362 |
|