Update app.py
Browse files
app.py
CHANGED
|
@@ -223,9 +223,21 @@ def salamandra_chat_endpoint(prompt: str) -> Dict[str, Any]:
|
|
| 223 |
return {"text": text}
|
| 224 |
|
| 225 |
# =================== UI ===================
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 226 |
|
| 227 |
# Main interface for Salamandra 7B Tools: supports tool specification (function calling)
|
| 228 |
-
with gr.Blocks(title="Salamandra 7B Tools · ZeroGPU") as demo:
|
| 229 |
|
| 230 |
# Header description for the UI
|
| 231 |
gr.Markdown("## Salamandra-7B-Tools · ZeroGPU\nXat amb especificació d'eines (function-calling).")
|
|
|
|
| 223 |
return {"text": text}
|
| 224 |
|
| 225 |
# =================== UI ===================
|
| 226 |
+
custom_css = """
|
| 227 |
+
h2 {
|
| 228 |
+
background: #e3e4e6 !important;
|
| 229 |
+
padding: 14px 22px !important;
|
| 230 |
+
border-radius: 14px !important;
|
| 231 |
+
box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
|
| 232 |
+
display: block !important; /* ocupa tot l'ample */
|
| 233 |
+
width: 100% !important; /* assegura 100% */
|
| 234 |
+
margin: 20px auto !important;
|
| 235 |
+
text-align:center;
|
| 236 |
+
}
|
| 237 |
+
"""
|
| 238 |
|
| 239 |
# Main interface for Salamandra 7B Tools: supports tool specification (function calling)
|
| 240 |
+
with gr.Blocks(title="Salamandra 7B Tools · ZeroGPU", css=custom_css, theme=gr.themes.Soft()) as demo:
|
| 241 |
|
| 242 |
# Header description for the UI
|
| 243 |
gr.Markdown("## Salamandra-7B-Tools · ZeroGPU\nXat amb especificació d'eines (function-calling).")
|