Spaces:
Sleeping
Sleeping
Commit
·
f558201
1
Parent(s):
030f421
V1
Browse files
.gradio/cached_examples/13/Output/7d9aa6ebebf5e1f900fd/image.webp
ADDED
![]() |
.gradio/cached_examples/13/log.csv
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
Output,timestamp
|
2 |
+
"{""path"": "".gradio/cached_examples/13/Output/7d9aa6ebebf5e1f900fd/image.webp"", ""url"": ""/gradio_api/file=/tmp/gradio/bcac034685c5cc1a53d7138a73fdc4a0a38bcb6fb2ea47bdeb1677184d92ab9b/image.webp"", ""size"": null, ""orig_name"": ""image.webp"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}",2025-01-19 23:32:19.813025
|
app.py
CHANGED
@@ -1,3 +1,43 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
# Custom CSS styling
|
4 |
+
custom_css = """
|
5 |
+
body {
|
6 |
+
margin: 0;
|
7 |
+
padding: 0;
|
8 |
+
background-color: #1e1e1e; /* Dark gray background */
|
9 |
+
color: #ffffff; /* White text for contrast */
|
10 |
+
font-family: Arial, sans-serif;
|
11 |
+
display: flex;
|
12 |
+
justify-content: center;
|
13 |
+
align-items: center;
|
14 |
+
height: 100vh;
|
15 |
+
}
|
16 |
+
|
17 |
+
.gradio-container {
|
18 |
+
border: 1px solid #444; /* Subtle dark border */
|
19 |
+
background-color: #2b2b2b; /* Slightly lighter dark theme for container */
|
20 |
+
border-radius: 8px; /* Rounded edges */
|
21 |
+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Shadow effect */
|
22 |
+
padding: 10px;
|
23 |
+
}
|
24 |
+
|
25 |
+
button {
|
26 |
+
background-color: #444; /* Dark button with light hover effect */
|
27 |
+
color: #ffffff;
|
28 |
+
border: 1px solid #666;
|
29 |
+
padding: 10px 20px;
|
30 |
+
border-radius: 4px;
|
31 |
+
cursor: pointer;
|
32 |
+
}
|
33 |
+
|
34 |
+
button:hover {
|
35 |
+
background-color: #666; /* Slightly lighter on hover */
|
36 |
+
}
|
37 |
+
"""
|
38 |
+
|
39 |
+
# Load your Gradio model
|
40 |
+
demo = gr.load("models/strangerzonehf/Flux-Midjourney-Mix2-LoRA")
|
41 |
+
|
42 |
+
# Launch with CSS customization
|
43 |
+
demo.launch(css=custom_css)
|