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 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
|
138 |
logging.info('Loading Interface')
|
139 |
with App.Blocks(css='style.css') as demo:
|
|
|
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:
|