Spaces:
Running on Zero
Running on Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,8 +15,8 @@ pipe = pipeline(
|
|
| 15 |
|
| 16 |
fancy_css = """
|
| 17 |
.gradio-container {
|
| 18 |
-
|
| 19 |
-
|
| 20 |
}
|
| 21 |
|
| 22 |
#app-title {
|
|
@@ -31,6 +31,7 @@ fancy_css = """
|
|
| 31 |
}
|
| 32 |
|
| 33 |
#chat-container {
|
|
|
|
| 34 |
border: 1px solid var(--border-color-primary);
|
| 35 |
border-radius: 12px;
|
| 36 |
padding: 16px;
|
|
@@ -42,6 +43,16 @@ fancy_css = """
|
|
| 42 |
color: var(--body-text-color-subdued);
|
| 43 |
margin-top: 8px;
|
| 44 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 45 |
"""
|
| 46 |
|
| 47 |
|
|
@@ -166,7 +177,7 @@ with gr.Blocks(css=fancy_css) as demo:
|
|
| 166 |
)
|
| 167 |
|
| 168 |
gr.Markdown(
|
| 169 |
-
"
|
| 170 |
elem_id="app-subtitle",
|
| 171 |
)
|
| 172 |
|
|
|
|
| 15 |
|
| 16 |
fancy_css = """
|
| 17 |
.gradio-container {
|
| 18 |
+
width: 96% !important;
|
| 19 |
+
max-width: none !important;
|
| 20 |
}
|
| 21 |
|
| 22 |
#app-title {
|
|
|
|
| 31 |
}
|
| 32 |
|
| 33 |
#chat-container {
|
| 34 |
+
width: 100%;
|
| 35 |
border: 1px solid var(--border-color-primary);
|
| 36 |
border-radius: 12px;
|
| 37 |
padding: 16px;
|
|
|
|
| 43 |
color: var(--body-text-color-subdued);
|
| 44 |
margin-top: 8px;
|
| 45 |
}
|
| 46 |
+
|
| 47 |
+
@media (max-width: 768px) {
|
| 48 |
+
.gradio-container {
|
| 49 |
+
width: 98% !important;
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
#chat-container {
|
| 53 |
+
padding: 8px;
|
| 54 |
+
}
|
| 55 |
+
}
|
| 56 |
"""
|
| 57 |
|
| 58 |
|
|
|
|
| 177 |
)
|
| 178 |
|
| 179 |
gr.Markdown(
|
| 180 |
+
"A fancier version of the standard Huggging Face chatbot template.",
|
| 181 |
elem_id="app-subtitle",
|
| 182 |
)
|
| 183 |
|