Update app.py
Browse files
app.py
CHANGED
@@ -95,45 +95,45 @@ def SendIt4(Inputs, NoiseLevel, DreamDiffusion=DreamDiffusion):
|
|
95 |
logging.info('Done Creating Image On Thread 4')
|
96 |
return Output4
|
97 |
|
98 |
-
def SendIt5(Inputs, NoiseLevel, DreamDiffusion=DreamDiffusion):
|
99 |
-
logging.info('Creating Image On Thread 5')
|
100 |
-
NoisedPrompt = AddNoise(Inputs, NoiseLevel)
|
101 |
-
while queue.qsize() >= queue_threshold:
|
102 |
-
time.sleep(2)
|
103 |
-
queue.put(NoisedPrompt)
|
104 |
-
Output5 = DreamPhotoReal(NoisedPrompt)
|
105 |
-
logging.info('Done Creating Image On Thread 5')
|
106 |
-
return Output5
|
107 |
-
|
108 |
-
def SendIt6(Inputs, NoiseLevel, DreamDiffusion=DreamDiffusion):
|
109 |
-
logging.info('Creating Image On Thread 6')
|
110 |
-
NoisedPrompt = AddNoise(Inputs, NoiseLevel)
|
111 |
-
while queue.qsize() >= queue_threshold:
|
112 |
-
time.sleep(2)
|
113 |
-
queue.put(NoisedPrompt)
|
114 |
-
Output6 = DreamPhotoReal(NoisedPrompt)
|
115 |
-
logging.info('Done Creating Image On Thread 6')
|
116 |
-
return Output6
|
117 |
-
|
118 |
-
def SendIt7(Inputs, NoiseLevel, DreamDiffusion=DreamDiffusion):
|
119 |
-
logging.info('Creating Image On Thread 7')
|
120 |
-
NoisedPrompt = AddNoise(Inputs, NoiseLevel)
|
121 |
-
while queue.qsize() >= queue_threshold:
|
122 |
-
time.sleep(2)
|
123 |
-
queue.put(NoisedPrompt)
|
124 |
-
Output7 = DreamPhotoReal(NoisedPrompt)
|
125 |
-
logging.info('Done Creating Image On Thread 7')
|
126 |
-
return Output7
|
127 |
-
|
128 |
-
def SendIt8(Inputs, NoiseLevel, DreamDiffusion=DreamDiffusion):
|
129 |
-
logging.info('Creating Image On Thread 8')
|
130 |
-
NoisedPrompt = AddNoise(Inputs, NoiseLevel)
|
131 |
-
while queue.qsize() >= queue_threshold:
|
132 |
-
time.sleep(2)
|
133 |
-
queue.put(NoisedPrompt)
|
134 |
-
Output8 = DreamPhotoReal(NoisedPrompt)
|
135 |
-
logging.info('Done Creating Image On Thread 8')
|
136 |
-
return Output8
|
137 |
|
138 |
logging.info('Loading Interface')
|
139 |
with App.Blocks(css='style.css') as demo:
|
@@ -199,10 +199,10 @@ with App.Blocks(css='style.css') as demo:
|
|
199 |
Output2=App.Image(label='Dreamlike Diffusion 1.0',show_label=False)
|
200 |
Output3=App.Image(label='Dreamlike Diffusion 1.0',show_label=False)
|
201 |
Output4=App.Image(label='Dreamlike Diffusion 1.0',show_label=False)
|
202 |
-
Output5=App.Image(label='Dreamlike PhotoReal 2.0',show_label=True)
|
203 |
-
Output6=App.Image(label='Dreamlike PhotoReal 2.0',show_label=False)
|
204 |
-
Output7=App.Image(label='Dreamlike PhotoReal 2.0',show_label=False)
|
205 |
-
Output8=App.Image(label='Dreamlike PhotoReal 2.0',show_label=False)
|
206 |
|
207 |
|
208 |
SeePrompts.click(get_prompts, inputs=[input_text], outputs=[prompt], queue=False)
|
@@ -211,10 +211,10 @@ with App.Blocks(css='style.css') as demo:
|
|
211 |
Run.click(SendIt2, inputs=[prompt, NoiseLevel], outputs=[Output2])
|
212 |
Run.click(SendIt3, inputs=[prompt, NoiseLevel], outputs=[Output3])
|
213 |
Run.click(SendIt4, inputs=[prompt, NoiseLevel], outputs=[Output4])
|
214 |
-
Run.click(SendIt5, inputs=[prompt, NoiseLevel], outputs=[Output5])
|
215 |
-
Run.click(SendIt6, inputs=[prompt, NoiseLevel], outputs=[Output6])
|
216 |
-
Run.click(SendIt7, inputs=[prompt, NoiseLevel], outputs=[Output7])
|
217 |
-
Run.click(SendIt8, inputs=[prompt, NoiseLevel], outputs=[Output8])
|
218 |
|
219 |
|
220 |
with App.Row():
|
|
|
95 |
logging.info('Done Creating Image On Thread 4')
|
96 |
return Output4
|
97 |
|
98 |
+
#def SendIt5(Inputs, NoiseLevel, DreamDiffusion=DreamDiffusion):
|
99 |
+
#logging.info('Creating Image On Thread 5')
|
100 |
+
#NoisedPrompt = AddNoise(Inputs, NoiseLevel)
|
101 |
+
#while queue.qsize() >= queue_threshold:
|
102 |
+
#time.sleep(2)
|
103 |
+
#queue.put(NoisedPrompt)
|
104 |
+
#Output5 = DreamPhotoReal(NoisedPrompt)
|
105 |
+
#logging.info('Done Creating Image On Thread 5')
|
106 |
+
#return Output5
|
107 |
+
|
108 |
+
#def SendIt6(Inputs, NoiseLevel, DreamDiffusion=DreamDiffusion):
|
109 |
+
#logging.info('Creating Image On Thread 6')
|
110 |
+
#NoisedPrompt = AddNoise(Inputs, NoiseLevel)
|
111 |
+
#while queue.qsize() >= queue_threshold:
|
112 |
+
#time.sleep(2)
|
113 |
+
#queue.put(NoisedPrompt)
|
114 |
+
#Output6 = DreamPhotoReal(NoisedPrompt)
|
115 |
+
#logging.info('Done Creating Image On Thread 6')
|
116 |
+
#return Output6
|
117 |
+
|
118 |
+
#def SendIt7(Inputs, NoiseLevel, DreamDiffusion=DreamDiffusion):
|
119 |
+
#logging.info('Creating Image On Thread 7')
|
120 |
+
#NoisedPrompt = AddNoise(Inputs, NoiseLevel)
|
121 |
+
#while queue.qsize() >= queue_threshold:
|
122 |
+
#time.sleep(2)
|
123 |
+
#queue.put(NoisedPrompt)
|
124 |
+
#Output7 = DreamPhotoReal(NoisedPrompt)
|
125 |
+
#logging.info('Done Creating Image On Thread 7')
|
126 |
+
#return Output7
|
127 |
+
|
128 |
+
#def SendIt8(Inputs, NoiseLevel, DreamDiffusion=DreamDiffusion):
|
129 |
+
#logging.info('Creating Image On Thread 8')
|
130 |
+
#NoisedPrompt = AddNoise(Inputs, NoiseLevel)
|
131 |
+
#while queue.qsize() >= queue_threshold:
|
132 |
+
#time.sleep(2)
|
133 |
+
#queue.put(NoisedPrompt)
|
134 |
+
#Output8 = DreamPhotoReal(NoisedPrompt)
|
135 |
+
#logging.info('Done Creating Image On Thread 8')
|
136 |
+
#return Output8
|
137 |
|
138 |
logging.info('Loading Interface')
|
139 |
with App.Blocks(css='style.css') as demo:
|
|
|
199 |
Output2=App.Image(label='Dreamlike Diffusion 1.0',show_label=False)
|
200 |
Output3=App.Image(label='Dreamlike Diffusion 1.0',show_label=False)
|
201 |
Output4=App.Image(label='Dreamlike Diffusion 1.0',show_label=False)
|
202 |
+
#Output5=App.Image(label='Dreamlike PhotoReal 2.0',show_label=True)
|
203 |
+
#Output6=App.Image(label='Dreamlike PhotoReal 2.0',show_label=False)
|
204 |
+
#Output7=App.Image(label='Dreamlike PhotoReal 2.0',show_label=False)
|
205 |
+
#Output8=App.Image(label='Dreamlike PhotoReal 2.0',show_label=False)
|
206 |
|
207 |
|
208 |
SeePrompts.click(get_prompts, inputs=[input_text], outputs=[prompt], queue=False)
|
|
|
211 |
Run.click(SendIt2, inputs=[prompt, NoiseLevel], outputs=[Output2])
|
212 |
Run.click(SendIt3, inputs=[prompt, NoiseLevel], outputs=[Output3])
|
213 |
Run.click(SendIt4, inputs=[prompt, NoiseLevel], outputs=[Output4])
|
214 |
+
#Run.click(SendIt5, inputs=[prompt, NoiseLevel], outputs=[Output5])
|
215 |
+
#Run.click(SendIt6, inputs=[prompt, NoiseLevel], outputs=[Output6])
|
216 |
+
#Run.click(SendIt7, inputs=[prompt, NoiseLevel], outputs=[Output7])
|
217 |
+
#Run.click(SendIt8, inputs=[prompt, NoiseLevel], outputs=[Output8])
|
218 |
|
219 |
|
220 |
with App.Row():
|