phenomenon1981 commited on
Commit
78a76b5
1 Parent(s): 48fbc9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -12,9 +12,6 @@ text_gen=gr.Interface.load("spaces/Omnibus/MagicPrompt-Stable-Diffusion")
12
  proc1=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0")
13
  proc5=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
14
 
15
-
16
- import random
17
-
18
  def add_random_noise(prompt, noise_level=0.07):
19
  # Get the percentage of characters to add as noise
20
  percentage_noise = noise_level * 5
@@ -37,7 +34,7 @@ def send_it1(inputs, noise_level, proc1=proc1):
37
  if not queue.empty():
38
  queue.queue.clear()
39
  queue_length_counter = 0
40
- output1 = proc1(prompt_with_noise, timeout=60)
41
  queue_length_counter += 1
42
  return output1
43
  time.sleep(1)
 
12
  proc1=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0")
13
  proc5=gr.Interface.load("models/dreamlike-art/dreamlike-diffusion-1.0")
14
 
 
 
 
15
  def add_random_noise(prompt, noise_level=0.07):
16
  # Get the percentage of characters to add as noise
17
  percentage_noise = noise_level * 5
 
34
  if not queue.empty():
35
  queue.queue.clear()
36
  queue_length_counter = 0
37
+ output1 = proc1(prompt_with_noise)
38
  queue_length_counter += 1
39
  return output1
40
  time.sleep(1)