jkorstad commited on
Commit
7948fd7
·
verified ·
1 Parent(s): 6258d25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +75 -1
app.py CHANGED
@@ -37,17 +37,91 @@ examples = [
37
 
38
 
39
 
 
 
 
 
 
 
 
40
  css="""
 
 
 
 
 
 
 
41
  col-container {
42
  margin: 0 auto;
43
  max-width: 520px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
44
  }
45
  """
46
 
47
  with gr.Blocks(css=css) as demo:
48
 
49
  with gr.Column(elem_id="col-container"):
50
- gr.Markdown(f"""Generate an image with Flux. Please review the license if you are not familiar with it. Not for Commercial Use!]
 
51
  """)
52
 
53
  with gr.Row():
 
37
 
38
 
39
 
40
+ #css="""
41
+ #col-container {
42
+ # margin: 0 auto;
43
+ # max-width: 520px;
44
+ #}
45
+ #"""
46
+
47
  css="""
48
+ /* Add some basic styling to the app */
49
+ body {
50
+ font-family: Arial, sans-serif;
51
+ background-color: #f2f2f2;
52
+ }
53
+
54
+ /* Style the column container */
55
  col-container {
56
  margin: 0 auto;
57
  max-width: 520px;
58
+ padding: 20px;
59
+ background-color: #fff;
60
+ border: 1px solid #ddd;
61
+ border-radius: 10px;
62
+ box-shadow: 0 0 10px rgba(0,0,0,0.1);
63
+ }
64
+
65
+ /* Style the markdown text */
66
+ .gr-markdown {
67
+ font-size: 16px;
68
+ color: #333;
69
+ }
70
+
71
+ /* Style the input fields */
72
+ .gr-input {
73
+ padding: 10px;
74
+ border: 1px solid #ccc;
75
+ border-radius: 5px;
76
+ }
77
+
78
+ /* Style the sliders */
79
+ .gr-slider {
80
+ width: 100%;
81
+ padding: 10px;
82
+ }
83
+
84
+ /* Style the buttons */
85
+ .gr-button {
86
+ background-color: #4CAF50;
87
+ color: #fff;
88
+ padding: 10px 20px;
89
+ border: none;
90
+ border-radius: 5px;
91
+ cursor: pointer;
92
+ }
93
+
94
+ .gr-button:hover {
95
+ background-color: #3e8e41;
96
+ }
97
+
98
+ /* Style the accordion */
99
+ .gr-accordion {
100
+ background-color: #f2f2f2;
101
+ border: 1px solid #ddd;
102
+ border-radius: 10px;
103
+ padding: 10px;
104
+ }
105
+
106
+ .gr-accordion label {
107
+ font-weight: bold;
108
+ margin-bottom: 10px;
109
+ }
110
+
111
+ /* Style the examples */
112
+ .gr-examples {
113
+ padding: 10px;
114
+ background-color: #f2f2f2;
115
+ border: 1px solid #ddd;
116
+ border-radius: 10px;
117
  }
118
  """
119
 
120
  with gr.Blocks(css=css) as demo:
121
 
122
  with gr.Column(elem_id="col-container"):
123
+ gr.Markdown(f"""Generate an image with Flux. Try it out and let me know what you think! Expect roughly 45-60 seconds per generation with it's current backend. This can be scaled up over time as needed. Thanks!
124
+ Not for Commercial Use - Apache 2.0 License
125
  """)
126
 
127
  with gr.Row():