Thafx commited on
Commit
38287cc
1 Parent(s): 3e68988

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +39 -39
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:
 
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: