Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,14 +52,49 @@ def chat_math_virtuoso(message: str, temperature: float = 0.7, max_new_tokens: i
|
|
| 52 |
yield "".join(outputs)
|
| 53 |
|
| 54 |
with gr.Blocks(css="""
|
| 55 |
-
body {
|
| 56 |
-
|
| 57 |
-
|
| 58 |
-
|
| 59 |
-
.gr-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
""") as demo:
|
| 61 |
|
| 62 |
-
gr.Markdown("<h2
|
| 63 |
|
| 64 |
with gr.Row():
|
| 65 |
with gr.Column(scale=2):
|
|
|
|
| 52 |
yield "".join(outputs)
|
| 53 |
|
| 54 |
with gr.Blocks(css="""
|
| 55 |
+
body {
|
| 56 |
+
background: linear-gradient(135deg, #f0f2ff, #d9e4ff);
|
| 57 |
+
font-family: 'Helvetica Neue', Arial, sans-serif;
|
| 58 |
+
}
|
| 59 |
+
.gr-block {
|
| 60 |
+
border-radius: 20px;
|
| 61 |
+
box-shadow: 0 10px 30px rgba(0,0,0,0.12);
|
| 62 |
+
padding: 20px;
|
| 63 |
+
}
|
| 64 |
+
.gr-button {
|
| 65 |
+
background: linear-gradient(90deg, #6C63FF, #8B78FF);
|
| 66 |
+
color: white;
|
| 67 |
+
font-weight: bold;
|
| 68 |
+
border-radius: 12px;
|
| 69 |
+
padding: 10px 25px;
|
| 70 |
+
transition: all 0.3s ease;
|
| 71 |
+
}
|
| 72 |
+
.gr-button:hover {
|
| 73 |
+
transform: translateY(-2px);
|
| 74 |
+
box-shadow: 0 6px 15px rgba(0,0,0,0.2);
|
| 75 |
+
}
|
| 76 |
+
.gr-textbox {
|
| 77 |
+
border-radius: 12px;
|
| 78 |
+
border: 1px solid #ccc;
|
| 79 |
+
padding: 10px;
|
| 80 |
+
transition: border-color 0.3s;
|
| 81 |
+
}
|
| 82 |
+
.gr-textbox:focus {
|
| 83 |
+
border-color: #6C63FF;
|
| 84 |
+
box-shadow: 0 0 8px rgba(108, 99, 255, 0.3);
|
| 85 |
+
}
|
| 86 |
+
.gr-slider .noUi-connect {
|
| 87 |
+
background: #6C63FF;
|
| 88 |
+
}
|
| 89 |
+
h2 {
|
| 90 |
+
text-align: center;
|
| 91 |
+
color: #6C63FF;
|
| 92 |
+
font-weight: 700;
|
| 93 |
+
margin-bottom: 25px;
|
| 94 |
+
}
|
| 95 |
""") as demo:
|
| 96 |
|
| 97 |
+
gr.Markdown("<h2>🤖 Math Virtuoso 7B Chat</h2>")
|
| 98 |
|
| 99 |
with gr.Row():
|
| 100 |
with gr.Column(scale=2):
|