refactor: replace custom HTML head with native title and description in ChatInterface
Browse files
app.py
CHANGED
|
@@ -234,8 +234,8 @@ footer {
|
|
| 234 |
# ==============================================================================
|
| 235 |
demo = gr.ChatInterface(
|
| 236 |
fn=chat_response,
|
| 237 |
-
|
| 238 |
-
|
| 239 |
textbox=gr.Textbox(
|
| 240 |
placeholder="Hỏi Gemma bất kỳ điều gì (nhấn Enter để gửi)...",
|
| 241 |
lines=1,
|
|
@@ -288,10 +288,6 @@ demo = gr.ChatInterface(
|
|
| 288 |
primary_hue="blue",
|
| 289 |
neutral_hue="neutral",
|
| 290 |
),
|
| 291 |
-
head="""
|
| 292 |
-
<div class="gemini-title">✨ Google Gemma Assistant</div>
|
| 293 |
-
<div class="gemini-subtitle">Trải nghiệm đối thoại AI phong cách Gemini • Tải trực tiếp mô hình Gemma 4 31B (4-bit ZeroGPU)</div>
|
| 294 |
-
""",
|
| 295 |
)
|
| 296 |
|
| 297 |
if __name__ == "__main__":
|
|
|
|
| 234 |
# ==============================================================================
|
| 235 |
demo = gr.ChatInterface(
|
| 236 |
fn=chat_response,
|
| 237 |
+
title="✨ Google Gemma Assistant",
|
| 238 |
+
description="Trải nghiệm đối thoại AI phong cách Gemini • Tải trực tiếp mô hình Gemma 4 31B (4-bit ZeroGPU)",
|
| 239 |
textbox=gr.Textbox(
|
| 240 |
placeholder="Hỏi Gemma bất kỳ điều gì (nhấn Enter để gửi)...",
|
| 241 |
lines=1,
|
|
|
|
| 288 |
primary_hue="blue",
|
| 289 |
neutral_hue="neutral",
|
| 290 |
),
|
|
|
|
|
|
|
|
|
|
|
|
|
| 291 |
)
|
| 292 |
|
| 293 |
if __name__ == "__main__":
|