WatchOutForMike commited on
Commit
f5ee5fe
·
1 Parent(s): ccafece
Files changed (1) hide show
  1. app.py +53 -1
app.py CHANGED
@@ -1,3 +1,55 @@
1
  import gradio as gr
2
 
3
- gr.load("models/prashanth970/flux-lora-uncensored").launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ # Define the CSS for the D&D theme
4
+ dnd_css = """
5
+ body {
6
+ background-color: #1f1f1f;
7
+ color: #e0e0e0;
8
+ font-family: 'Cinzel', serif;
9
+ }
10
+ .gradio-container {
11
+ background-color: #2c2c2c;
12
+ border: 2px solid #8b5a2b;
13
+ border-radius: 10px;
14
+ padding: 20px;
15
+ }
16
+ .gradio-input, .gradio-output {
17
+ background-color: #3a3a3a;
18
+ color: #e0e0e0;
19
+ border: 1px solid #8b5a2b;
20
+ border-radius: 5px;
21
+ padding: 10px;
22
+ }
23
+ .gradio-button {
24
+ background-color: #8b5a2b;
25
+ color: #e0e0e0;
26
+ border: none;
27
+ border-radius: 5px;
28
+ padding: 10px 20px;
29
+ font-family: 'Cinzel', serif;
30
+ }
31
+ .gradio-button:hover {
32
+ background-color: #a8673f;
33
+ }
34
+ .gradio-title {
35
+ color: #e0e0e0;
36
+ font-family: 'Cinzel', serif;
37
+ font-size: 24px;
38
+ text-align: center;
39
+ margin-bottom: 20px;
40
+ }
41
+ """
42
+
43
+ # Load the model
44
+ model = gr.load("models/prashanth970/flux-lora-uncensored")
45
+
46
+ # Launch the Gradio app with the D&D theme
47
+ iface = gr.Interface(
48
+ fn=model,
49
+ inputs="text",
50
+ outputs="text",
51
+ title="Dungeons & Dragons Theme",
52
+ css=dnd_css
53
+ )
54
+
55
+ iface.launch()