WatchOutForMike commited on
Commit
6393abf
·
1 Parent(s): 5016a29
.gradio/cached_examples/13/Output/1e956e662cb8c3d9eff2/image.webp ADDED
.gradio/cached_examples/13/log.csv ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Output,timestamp
2
+ "{""path"": "".gradio/cached_examples/13/Output/1e956e662cb8c3d9eff2/image.webp"", ""url"": ""/gradio_api/file=/tmp/gradio/c57e745c3efeb113ea29edd7785470eea359c022418b37b126a27034238a6f75/image.webp"", ""size"": null, ""orig_name"": ""image.webp"", ""mime_type"": null, ""is_stream"": false, ""meta"": {""_type"": ""gradio.FileData""}}",2025-01-20 02:29:18.673413
app.py CHANGED
@@ -1,3 +1,153 @@
1
  import gradio as gr
2
 
3
- gr.load("models/prashanth970/flux-lora-uncensored").launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ gr.load("models/prashanth970/flux-lora-uncensored").launch()
4
+
5
+ # Updated CSS with new additions
6
+ custom_css = """
7
+ @import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Uncial+Antiqua&display=swap');
8
+ body {
9
+ background-color: #1b1b1b; /* Dungeon-like backdrop */
10
+ color: #f5f5f5;
11
+ font-family: 'Cinzel', serif; /* Fantasy-themed font */
12
+ margin: 0;
13
+ padding: 0;
14
+ display: flex;
15
+ flex-direction: column;
16
+ align-items: center;
17
+ justify-content: flex-start;
18
+ height: 100vh;
19
+ background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png'); /* Subtle dungeon texture */
20
+ }
21
+ .gradio-container {
22
+ max-width: 950px;
23
+ margin: auto;
24
+ padding: 30px;
25
+ background: linear-gradient(145deg, #2e2b2a, #3a3433); /* Mystic gradient for depth */
26
+ border: 4px solid #8b4513;
27
+ border-radius: 15px;
28
+ box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
29
+ }
30
+ h1, h2 {
31
+ color: #ffd700;
32
+ text-align: center;
33
+ font-family: 'Uncial Antiqua', serif; /* Ancient fantasy font */
34
+ text-shadow: 3px 3px #7c5200; /* Gold shine effect */
35
+ }
36
+ .description {
37
+ margin-top: 15px;
38
+ color: #d4af37; /* Lighter gold for elegance */
39
+ font-size: 18px;
40
+ line-height: 1.6;
41
+ text-align: center;
42
+ }
43
+ a {
44
+ color: #ffd700;
45
+ text-decoration: none;
46
+ font-weight: bold;
47
+ }
48
+ a:hover {
49
+ color: #ffcc33; /* Brighter gold for interactivity */
50
+ }
51
+ textarea, input[type="text"] {
52
+ background-color: #292828;
53
+ color: #f5e6ca;
54
+ border: 2px solid #8b4513;
55
+ border-radius: 5px;
56
+ padding: 10px;
57
+ font-family: 'Palatino Linotype', serif;
58
+ font-size: 16px;
59
+ }
60
+ textarea:focus, input[type="text"]:focus {
61
+ outline: none;
62
+ border-color: #ffd700;
63
+ box-shadow: 0 0 8px #ffd700;
64
+ }
65
+ button {
66
+ background: #8b4513;
67
+ color: #f0e6d2;
68
+ font-size: 18px;
69
+ font-family: 'Palatino Linotype', serif;
70
+ border: none;
71
+ border-radius: 8px;
72
+ padding: 12px 30px;
73
+ cursor: pointer;
74
+ transition: 0.3s ease-in-out;
75
+ box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
76
+ }
77
+ button:hover {
78
+ background: #a0522d;
79
+ box-shadow: 0 0 15px #ffd700;
80
+ }
81
+ .gradio-output {
82
+ background: #2f2f2f;
83
+ color: #ffd700;
84
+ border: 2px solid #8b4513;
85
+ border-radius: 8px;
86
+ padding: 20px;
87
+ text-align: center;
88
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
89
+ }
90
+ .gradio-output img {
91
+ max-width: 100%;
92
+ border: 2px solid #a0522d;
93
+ border-radius: 8px;
94
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
95
+ }
96
+ .footer {
97
+ text-align: center;
98
+ margin-top: 30px;
99
+ color: #ffd700;
100
+ font-size: 14px;
101
+ text-shadow: 1px 1px #7c5200;
102
+ }
103
+ .footer a {
104
+ color: #ffd700;
105
+ text-decoration: none;
106
+ margin: 0 10px;
107
+ }
108
+ .footer a:hover {
109
+ color: #ffcc33;
110
+ text-shadow: 2px 2px #ff9900;
111
+ }
112
+ @keyframes fadeIn {
113
+ 0% { opacity: 0; }
114
+ 100% { opacity: 1; }
115
+ }
116
+ .loading-animation {
117
+ text-align: center;
118
+ color: #ffd700;
119
+ font-size: 18px;
120
+ margin-top: 10px;
121
+ font-family: 'Uncial Antiqua', serif;
122
+ animation: fadeIn 1.5s ease-in-out infinite alternate;
123
+ }
124
+ """
125
+
126
+ # JavaScript for optional background music
127
+ background_music = """
128
+ <script>
129
+ var audio = new Audio('https://www.fesliyanstudios.com/play-mp3/387');
130
+ audio.loop = true;
131
+ audio.volume = 0.5;
132
+ audio.play();
133
+ </script>
134
+ """
135
+
136
+ # Define Gradio interface with a loading animation
137
+ def model_with_loading(prompt):
138
+ return model(prompt)
139
+
140
+ iface = gr.Interface(
141
+ fn=model_with_loading,
142
+ inputs=gr.Textbox(lines=3, label="🎲 Enter Your Quest:", placeholder="Describe your scene, hero, or epic landscape..."),
143
+ outputs=gr.Image(type="pil", label="🖼️ Your Legendary Vision"),
144
+ title="🛡️ Dungeons & Dragons Image Generator ⚔️",
145
+ description="**Unleash Your Imagination!** Create heroes, maps, quests, and epic scenes to bring your campaigns to life. "
146
+ "Tailored for adventurers seeking inspiration or Dungeon Masters constructing their next grand story. <br>"
147
+ "[Visit Our Website](https://chatdnd.net) | [Support Us](https://buymeacoffee.com/watchoutformike)",
148
+ css=custom_css,
149
+ live=False
150
+ )
151
+
152
+ # Launch the interface with background music
153
+ iface.launch(inline=False)