Hotfix Epic Errands V2 light hosted shell
Browse files- README.md +1 -1
- app.py +11 -3
- frontend/index.html +1 -0
- frontend/styles/components.css +1 -1
README.md
CHANGED
|
@@ -20,7 +20,7 @@ DIY Lab for editing the workflow draft.
|
|
| 20 |
|
| 21 |
- App: [build-small-hackathon-epic-errands.hf.space](https://build-small-hackathon-epic-errands.hf.space/)
|
| 22 |
- Source repo: [curious1n/HF-build-small-hackathon](https://github.com/curious1n/HF-build-small-hackathon)
|
| 23 |
-
- HF Article source: [Epic Errands
|
| 24 |
- HF Article target: [build-small-hackathon/epic-errands-v1-agent-traces-quick-eval](https://huggingface.co/blog/build-small-hackathon/epic-errands-v1-agent-traces-quick-eval)
|
| 25 |
- Agent traces: [build-small-hackathon/epic-errands-v1-agent-traces](https://huggingface.co/datasets/build-small-hackathon/epic-errands-v1-agent-traces)
|
| 26 |
|
|
|
|
| 20 |
|
| 21 |
- App: [build-small-hackathon-epic-errands.hf.space](https://build-small-hackathon-epic-errands.hf.space/)
|
| 22 |
- Source repo: [curious1n/HF-build-small-hackathon](https://github.com/curious1n/HF-build-small-hackathon)
|
| 23 |
+
- HF Article source: [Epic Errands Running Notes](https://github.com/curious1n/HF-build-small-hackathon/blob/main/product/5-idea-epic-errands/articles/running-notes.md)
|
| 24 |
- HF Article target: [build-small-hackathon/epic-errands-v1-agent-traces-quick-eval](https://huggingface.co/blog/build-small-hackathon/epic-errands-v1-agent-traces-quick-eval)
|
| 25 |
- Agent traces: [build-small-hackathon/epic-errands-v1-agent-traces](https://huggingface.co/datasets/build-small-hackathon/epic-errands-v1-agent-traces)
|
| 26 |
|
app.py
CHANGED
|
@@ -175,11 +175,19 @@ def _hosted_css() -> str:
|
|
| 175 |
(DIY_FRONTEND_ROOT / "styles" / "diy.css").read_text(encoding="utf-8"),
|
| 176 |
]
|
| 177 |
)
|
| 178 |
-
|
| 179 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
"footer{display:none!important;}"
|
| 181 |
-
"#epic-hosted-shell{padding:0!important;margin:0!important;}"
|
|
|
|
|
|
|
|
|
|
| 182 |
+ css
|
|
|
|
| 183 |
)
|
| 184 |
|
| 185 |
|
|
|
|
| 175 |
(DIY_FRONTEND_ROOT / "styles" / "diy.css").read_text(encoding="utf-8"),
|
| 176 |
]
|
| 177 |
)
|
| 178 |
+
hosted_overrides = (
|
| 179 |
+
":root{color-scheme:light;}"
|
| 180 |
+
"html,body{background:#f4f5f7!important;color-scheme:light!important;}"
|
| 181 |
+
"gradio-app,.gradio-container{color-scheme:light!important;}"
|
| 182 |
+
".gradio-container{max-width:none!important;padding:0!important;background:#f4f5f7!important;color:#353a42!important;}"
|
| 183 |
+
".dark .gradio-container,.gradio-container.dark{background:#f4f5f7!important;color:#353a42!important;}"
|
| 184 |
"footer{display:none!important;}"
|
| 185 |
+
"#epic-hosted-shell{padding:0!important;margin:0!important;background:var(--page-bg)!important;color:var(--body-color)!important;}"
|
| 186 |
+
)
|
| 187 |
+
return (
|
| 188 |
+
hosted_overrides
|
| 189 |
+ css
|
| 190 |
+
+ hosted_overrides
|
| 191 |
)
|
| 192 |
|
| 193 |
|
frontend/index.html
CHANGED
|
@@ -3,6 +3,7 @@
|
|
| 3 |
<head>
|
| 4 |
<meta charset="utf-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
| 6 |
<title>Epic Errands V2</title>
|
| 7 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 8 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
|
|
| 3 |
<head>
|
| 4 |
<meta charset="utf-8">
|
| 5 |
<meta name="viewport" content="width=device-width, initial-scale=1">
|
| 6 |
+
<meta name="color-scheme" content="light">
|
| 7 |
<title>Epic Errands V2</title>
|
| 8 |
<link rel="preconnect" href="https://fonts.googleapis.com">
|
| 9 |
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
frontend/styles/components.css
CHANGED
|
@@ -6,7 +6,7 @@
|
|
| 6 |
========================================================================== */
|
| 7 |
|
| 8 |
* { box-sizing: border-box; margin: 0; padding: 0; }
|
| 9 |
-
html, body { min-height: 100%; }
|
| 10 |
|
| 11 |
body {
|
| 12 |
font-family: var(--font-body);
|
|
|
|
| 6 |
========================================================================== */
|
| 7 |
|
| 8 |
* { box-sizing: border-box; margin: 0; padding: 0; }
|
| 9 |
+
html, body { min-height: 100%; color-scheme: light; }
|
| 10 |
|
| 11 |
body {
|
| 12 |
font-family: var(--font-body);
|