Ashrafb commited on
Commit
a4bb376
·
1 Parent(s): 52079dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -61,19 +61,23 @@ IMAGE_STYLES = [
61
  DEFAULT_IMAGE_STYLE = "Cinematic"
62
 
63
 
64
- def send_it1(inputs, noise_level, style, proc=proc1):
 
 
65
  global request_counter
66
  request_counter += 1
67
  timestamp = f"{time.time()}_{request_counter}"
68
  advanced_options = f"\nStyle: {style}\n"
69
- negative_prompt =" "
70
- prompt_with_noise = add_random_noise(inputs, noise_level) + f" - {timestamp}"+ advanced_options +negative_prompt
71
  while queue.qsize() >= queue_threshold:
72
  time.sleep(2)
73
  queue.put(prompt_with_noise)
74
  output = proc.process(prompt_with_noise)
75
  return output
76
 
 
 
77
 
78
  # ... (existing code)
79
 
 
61
  DEFAULT_IMAGE_STYLE = "Cinematic"
62
 
63
 
64
+ # ... (Previous code remains unchanged)
65
+
66
+ def send_it1(inputs, noise_level, style, proc=model_interface):
67
  global request_counter
68
  request_counter += 1
69
  timestamp = f"{time.time()}_{request_counter}"
70
  advanced_options = f"\nStyle: {style}\n"
71
+ negative_prompt = " "
72
+ prompt_with_noise = add_random_noise(inputs, noise_level) + f" - {timestamp}" + advanced_options + negative_prompt
73
  while queue.qsize() >= queue_threshold:
74
  time.sleep(2)
75
  queue.put(prompt_with_noise)
76
  output = proc.process(prompt_with_noise)
77
  return output
78
 
79
+ # ... (Remaining code remains unchanged)
80
+
81
 
82
  # ... (existing code)
83