Sergidev commited on
Commit
a21cf94
·
1 Parent(s): 86bbcb3
Files changed (2) hide show
  1. app.py +2 -1
  2. demo_app.py +1 -67
app.py CHANGED
@@ -2,5 +2,6 @@ from utils import install_packages
2
 
3
  if __name__ == "__main__":
4
  install_packages()
 
5
  from demo_app import demo
6
- demo.queue(max_size=20).launch(server_name="0.0.0.0", server_port=7860)
 
2
 
3
  if __name__ == "__main__":
4
  install_packages()
5
+
6
  from demo_app import demo
7
+ demo.queue(max_size=20).launch()
demo_app.py CHANGED
@@ -124,73 +124,7 @@ def apply_preset(preset_name, *current_values):
124
  return current_values
125
 
126
  css = """
127
- #col-container {
128
- margin: 0 auto;
129
- max-width: 850px;
130
- }
131
-
132
- .dark-theme {
133
- background-color: #1f1f1f;
134
- color: #ffffff;
135
- }
136
-
137
- .container {
138
- margin: 0 auto;
139
- padding: 20px;
140
- border-radius: 10px;
141
- background-color: #2d2d2d;
142
- box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
143
- }
144
-
145
- .title {
146
- text-align: center;
147
- margin-bottom: 1em;
148
- color: #ffffff;
149
- }
150
-
151
- .description {
152
- text-align: center;
153
- margin-bottom: 2em;
154
- color: #cccccc;
155
- font-size: 0.95em;
156
- line-height: 1.5;
157
- }
158
-
159
- .prompt-container {
160
- background-color: #363636;
161
- padding: 15px;
162
- border-radius: 8px;
163
- margin-bottom: 1em;
164
- width: 100%;
165
- }
166
-
167
- .prompt-textbox {
168
- min-height: 80px !important;
169
- }
170
-
171
- .preset-buttons {
172
- display: flex;
173
- gap: 10px;
174
- justify-content: center;
175
- margin-bottom: 1em;
176
- }
177
-
178
- .support-text {
179
- text-align: center;
180
- margin-top: 1em;
181
- color: #cccccc;
182
- font-size: 0.9em;
183
- }
184
-
185
- a {
186
- color: #00a7e1;
187
- text-decoration: none;
188
- }
189
-
190
- a:hover {
191
- text-decoration: underline;
192
- }
193
-
194
  .lora-sliders {
195
  margin-top: 15px;
196
  border-top: 1px solid #444;
 
124
  return current_values
125
 
126
  css = """
127
+ /* Existing CSS remains unchanged */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
  .lora-sliders {
129
  margin-top: 15px;
130
  border-top: 1px solid #444;