K00B404 commited on
Commit
d6bb065
·
verified ·
1 Parent(s): 8cc0d5c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +76 -1
app.py CHANGED
@@ -33,10 +33,85 @@ def generate_image(prompt):
33
  return image
34
  else:
35
  return f"Error: {response.status_code}, {response.text}"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
  # Create Gradio interface
38
  def create_ui():
39
- with gr.Blocks() as ui:
40
  gr.Markdown("## Flux Uncensored - Text to Image Generator")
41
 
42
  with gr.Row():
 
33
  return image
34
  else:
35
  return f"Error: {response.status_code}, {response.text}"
36
+
37
+ title_html="""
38
+ <center>
39
+ <div id="title-container">
40
+ <h1 id="title-text">FLUX Capacitor</h1>
41
+ </div>
42
+ </center>
43
+ """
44
+
45
+ css = """
46
+ .gradio-container {
47
+ background: url(https://huggingface.co/spaces/K00B404/FLUX.1-Dev-Serverless-darn-enhanced-prompt/resolve/main/edge.png);
48
+ background-size: 900px 880px;
49
+ background-repeat: no-repeat;
50
+ background-position: center;
51
+ background-attachment: fixed;
52
+ color:#000;
53
+ }
54
+ .dark\:bg-gray-950:is(.dark *) {
55
+ --tw-bg-opacity: 1;
56
+ background-color: rgb(157, 17, 142);
57
+ }
58
+ .gradio-container-4-41-0 .prose :last-child {
59
+ margin-top: 8px !important;
60
+ }
61
+ .gradio-container-4-41-0 .prose :last-child {
62
+ margin-bottom: -7px !important;
63
+ }
64
+ .dark {
65
+ --button-primary-background-fill: #09e60d70;
66
+ --button-primary-background-fill-hover: #00000070;
67
+ --background-fill-primary: #000;
68
+ --background-fill-secondary: #000;
69
+ }
70
+ .hide-container {
71
+ margin-top;-2px;
72
+ }
73
+ #app-container3 {
74
+ background-color: rgba(255, 255, 255, 0.001); /* Corrected to make semi-transparent */
75
+ max-width: 600px;
76
+ margin-left: auto;
77
+ margin-right: auto;
78
+ margin-bottom: 10px;
79
+ border-radius: 125px;
80
+ box-shadow: 0 0 10px rgba(0,0,0,0.1); /* Adjusted shadow opacity */
81
+ }
82
+ #app-container {
83
+ background-color: rgba(255, 255, 255, 0.001); /* Semi-transparent background */
84
+ max-width: 600px;
85
+ margin: 0 auto; /* Center horizontally */
86
+ padding-bottom: 10px;
87
+ border-radius: 25px;
88
+ box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Adjusted shadow opacity */
89
+ }
90
+ #title-container {
91
+ display: flex;
92
+ align-items: center
93
+ margin-bottom:10px;
94
+ justify-content: center;
95
+ }
96
+ #title-icon {
97
+ width: 32px;
98
+ height: auto;
99
+ margin-right: 10px;
100
+ }
101
+ #title-text {
102
+ font-size: 30px;
103
+ font-weight: bold;
104
+ color: #000;
105
+ }
106
+ """
107
+
108
+
109
+
110
+
111
 
112
  # Create Gradio interface
113
  def create_ui():
114
+ with gr.Blocks(theme='Nymbo/Nymbo_Theme', css=css) as ui:
115
  gr.Markdown("## Flux Uncensored - Text to Image Generator")
116
 
117
  with gr.Row():