zumat commited on
Commit
f5b11f8
·
verified ·
1 Parent(s): 3480234

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +81 -4
app.py CHANGED
@@ -55,6 +55,66 @@ examples = [
55
  5,
56
  28
57
  ],
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  [
59
  "Singolo edificio rosso in una città industriale durante una giornata di sole vicino a una stazione ferroviaria, montagne innevate sullo sfondo, vista dall'alto", # Prompt
60
  "alberi, pianura, cavalcavia, scritte", # Negative prompt
@@ -77,7 +137,7 @@ css="""
77
  }
78
 
79
  #title {
80
- margin-top: 5vh;
81
  }
82
 
83
  #promptLine {
@@ -87,14 +147,13 @@ css="""
87
  }
88
 
89
  #prompt {
90
- flex-grow: 1;
91
  border-radius: 5px 0 0 0;
92
- height: 100%;
93
  }
94
 
95
  #genBtn {
96
  border-radius: 0 5px 0 0;
97
- height: auto;
98
  }
99
 
100
  #genImage {
@@ -105,6 +164,24 @@ css="""
105
  .gallery-item {
106
  width: 100%;
107
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
108
  """
109
 
110
  with gr.Blocks(css=css, theme="bethecloud/storj_theme") as generino:
 
55
  5,
56
  28
57
  ],
58
+ [
59
+ "Yellow bus on a snowy mountain road ",
60
+ "",
61
+ 1829215614,
62
+ False,
63
+ 1024,
64
+ 1024,
65
+ 10,
66
+ 28
67
+ ],
68
+ [
69
+ "Moto adventure su una strada asfaltata in un tornante sulle montagne svizzere innevate",
70
+ "",
71
+ 0,
72
+ True,
73
+ 1024,
74
+ 576,
75
+ 7,
76
+ 40
77
+ ],
78
+ [
79
+ "Banana held by a piece of grey tape on a white wall",
80
+ "",
81
+ 0,
82
+ True,
83
+ 1024,
84
+ 1024,
85
+ 10,
86
+ 1
87
+ ],
88
+ [
89
+ "Banana held by a piece of grey tape on a white wall",
90
+ "",
91
+ 0,
92
+ True,
93
+ 1024,
94
+ 1024,
95
+ 10,
96
+ 10
97
+ ],
98
+ [
99
+ "Banana held by a piece of grey tape on a white wall",
100
+ "",
101
+ 0,
102
+ True,
103
+ 1024,
104
+ 1024,
105
+ 10,
106
+ 20
107
+ ],
108
+ [
109
+ "Banana held by a piece of grey tape on a white wall",
110
+ "",
111
+ 0,
112
+ True,
113
+ 1024,
114
+ 1024,
115
+ 10,
116
+ 30
117
+ ],
118
  [
119
  "Singolo edificio rosso in una città industriale durante una giornata di sole vicino a una stazione ferroviaria, montagne innevate sullo sfondo, vista dall'alto", # Prompt
120
  "alberi, pianura, cavalcavia, scritte", # Negative prompt
 
137
  }
138
 
139
  #title {
140
+ margin-top: 3vh;
141
  }
142
 
143
  #promptLine {
 
147
  }
148
 
149
  #prompt {
 
150
  border-radius: 5px 0 0 0;
151
+ min-height: 50px;
152
  }
153
 
154
  #genBtn {
155
  border-radius: 0 5px 0 0;
156
+ min-height: 50px;
157
  }
158
 
159
  #genImage {
 
164
  .gallery-item {
165
  width: 100%;
166
  }
167
+
168
+ @media (max-width: 1000px) {
169
+ .gradio-container{
170
+ width: 90vw !important;
171
+ }
172
+
173
+ #title {
174
+ margin-top: 0vh;
175
+ }
176
+
177
+ #prompt {
178
+ min-height: 30px;
179
+ }
180
+
181
+ #genBtn {
182
+ min-height: 30px;
183
+ }
184
+ }
185
  """
186
 
187
  with gr.Blocks(css=css, theme="bethecloud/storj_theme") as generino: