Spaces:
Runtime error
Runtime error
Upload folder using huggingface_hub
Browse files
README.md
CHANGED
|
@@ -5,7 +5,7 @@ emoji: 🔥
|
|
| 5 |
colorFrom: indigo
|
| 6 |
colorTo: indigo
|
| 7 |
sdk: gradio
|
| 8 |
-
sdk_version:
|
| 9 |
app_file: run.py
|
| 10 |
pinned: false
|
| 11 |
hf_oauth: true
|
|
|
|
| 5 |
colorFrom: indigo
|
| 6 |
colorTo: indigo
|
| 7 |
sdk: gradio
|
| 8 |
+
sdk_version: 6.0.0
|
| 9 |
app_file: run.py
|
| 10 |
pinned: false
|
| 11 |
hf_oauth: true
|
custom_css.css
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.gradio-container {
|
| 2 |
+
overflow: visible !important;
|
| 3 |
+
max-width: none !important;
|
| 4 |
+
}
|
| 5 |
+
#controls {
|
| 6 |
+
max-height: 100vh;
|
| 7 |
+
flex-wrap: unset;
|
| 8 |
+
overflow-y: scroll;
|
| 9 |
+
position: sticky;
|
| 10 |
+
top: 0;
|
| 11 |
+
}
|
| 12 |
+
#controls::-webkit-scrollbar {
|
| 13 |
+
-webkit-appearance: none;
|
| 14 |
+
width: 7px;
|
| 15 |
+
}
|
| 16 |
+
|
| 17 |
+
#controls::-webkit-scrollbar-thumb {
|
| 18 |
+
border-radius: 4px;
|
| 19 |
+
background-color: rgba(0, 0, 0, .5);
|
| 20 |
+
box-shadow: 0 0 1px rgba(255, 255, 255, .5);
|
| 21 |
+
}
|
run.ipynb
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
{"cells": [{"cell_type": "markdown", "id": "302934307671667531413257853548643485645", "metadata": {}, "source": ["# Gradio Demo: theme_builder"]}, {"cell_type": "code", "execution_count": null, "id": "272996653310673477252411125948039410165", "metadata": {}, "outputs": [], "source": ["!pip install -q gradio "]}, {"cell_type": "code", "execution_count": null, "id": "288918539441861185822528903084949547379", "metadata": {}, "outputs": [], "source": ["from gradio.themes.builder_app import demo\n", "\n", "if __name__ == \"__main__\":\n", " demo.launch()\n"]}], "metadata": {}, "nbformat": 4, "nbformat_minor": 5}
|
|
|
|
| 1 |
+
{"cells": [{"cell_type": "markdown", "id": "302934307671667531413257853548643485645", "metadata": {}, "source": ["# Gradio Demo: theme_builder"]}, {"cell_type": "code", "execution_count": null, "id": "272996653310673477252411125948039410165", "metadata": {}, "outputs": [], "source": ["!pip install -q gradio "]}, {"cell_type": "code", "execution_count": null, "id": "288918539441861185822528903084949547379", "metadata": {}, "outputs": [], "source": ["# Downloading files from the demo repo\n", "import os\n", "!wget -q https://github.com/gradio-app/gradio/raw/main/demo/theme_builder/custom_css.css"]}, {"cell_type": "code", "execution_count": null, "id": "44380577570523278879349135829904343037", "metadata": {}, "outputs": [], "source": ["import gradio as gr\n", "from gradio.themes.builder_app import demo\n", "\n", "if __name__ == \"__main__\":\n", " demo.launch(css_paths=[\"demo/custom_css/custom_css.css\"], theme=gr.themes.Base(), head=\"<style id='theme_css'></style>\")\n"]}], "metadata": {}, "nbformat": 4, "nbformat_minor": 5}
|
run.py
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
|
|
| 1 |
from gradio.themes.builder_app import demo
|
| 2 |
|
| 3 |
if __name__ == "__main__":
|
| 4 |
-
demo.launch()
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
from gradio.themes.builder_app import demo
|
| 3 |
|
| 4 |
if __name__ == "__main__":
|
| 5 |
+
demo.launch(css_paths=["demo/custom_css/custom_css.css"], theme=gr.themes.Base(), head="<style id='theme_css'></style>")
|