Spaces:
Sleeping
Sleeping
Sync from GitHub via hub-sync
Browse files
app.py
CHANGED
|
@@ -19,44 +19,22 @@ fancy_css = """
|
|
| 19 |
max-width: none !important;
|
| 20 |
background: url("/gradio_api/file=cute_kitchen_background.png") center / cover fixed !important;
|
| 21 |
}
|
| 22 |
-
#app-title
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
|
|
|
| 28 |
}
|
|
|
|
| 29 |
#app-subtitle {
|
| 30 |
text-align: center;
|
| 31 |
-
color: black;
|
| 32 |
-
background-color: #f3e5cf;
|
| 33 |
-
padding: 8px;
|
| 34 |
-
border-radius: 8px;
|
| 35 |
-
margin-bottom: 24px;
|
| 36 |
-
}
|
| 37 |
-
#time-required {
|
| 38 |
-
color: black !important;}
|
| 39 |
-
#pantry-staples {
|
| 40 |
-
color: black !important;}
|
| 41 |
-
#chat-container {
|
| 42 |
-
width: 100%;
|
| 43 |
-
border: 1px solid var(--border-color-primary);
|
| 44 |
-
border-radius: 12px;
|
| 45 |
-
padding: 16px;
|
| 46 |
-
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
|
| 47 |
-
}
|
| 48 |
-
#model-note {
|
| 49 |
-
font-size: 0.9em;
|
| 50 |
-
color: black;
|
| 51 |
-
margin-top: 8px;
|
| 52 |
}
|
| 53 |
@media (max-width: 768px) {
|
| 54 |
.gradio-container {
|
| 55 |
width: 98% !important;
|
| 56 |
}
|
| 57 |
-
#chat-container {
|
| 58 |
-
padding: 8px;
|
| 59 |
-
}
|
| 60 |
}
|
| 61 |
"""
|
| 62 |
|
|
@@ -148,7 +126,7 @@ def respond(
|
|
| 148 |
yield response
|
| 149 |
|
| 150 |
|
| 151 |
-
with gr.Blocks(
|
| 152 |
with gr.Sidebar():
|
| 153 |
gr.LoginButton()
|
| 154 |
|
|
@@ -240,4 +218,8 @@ with gr.Blocks(css=fancy_css) as demo:
|
|
| 240 |
)
|
| 241 |
|
| 242 |
if __name__ == "__main__":
|
| 243 |
-
demo.launch(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
max-width: none !important;
|
| 20 |
background: url("/gradio_api/file=cute_kitchen_background.png") center / cover fixed !important;
|
| 21 |
}
|
| 22 |
+
#app-title,
|
| 23 |
+
#app-subtitle,
|
| 24 |
+
#model-note {
|
| 25 |
+
background: var(--block-background-fill);
|
| 26 |
+
color: var(--body-text-color);
|
| 27 |
+
padding: var(--block-padding);
|
| 28 |
+
border-radius: var(--block-radius);
|
| 29 |
}
|
| 30 |
+
#app-title,
|
| 31 |
#app-subtitle {
|
| 32 |
text-align: center;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
}
|
| 34 |
@media (max-width: 768px) {
|
| 35 |
.gradio-container {
|
| 36 |
width: 98% !important;
|
| 37 |
}
|
|
|
|
|
|
|
|
|
|
| 38 |
}
|
| 39 |
"""
|
| 40 |
|
|
|
|
| 126 |
yield response
|
| 127 |
|
| 128 |
|
| 129 |
+
with gr.Blocks() as demo:
|
| 130 |
with gr.Sidebar():
|
| 131 |
gr.LoginButton()
|
| 132 |
|
|
|
|
| 218 |
)
|
| 219 |
|
| 220 |
if __name__ == "__main__":
|
| 221 |
+
demo.launch(
|
| 222 |
+
theme=gr.themes.Soft(),
|
| 223 |
+
css=fancy_css,
|
| 224 |
+
allowed_paths=["cute_kitchen_background.png"],
|
| 225 |
+
)
|