phenomenon1981 commited on
Commit
1bd8763
1 Parent(s): 4bd269d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -10,7 +10,7 @@ from threading import Thread
10
  import emoji
11
 
12
 
13
- text_gen=gr.Interface.load("spaces/Gustavosta/MagicPrompt-Stable-Diffusion")
14
  def get_prompts(prompt_text):
15
  return text_gen("photo, " + prompt_text)
16
  proc1=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0")
@@ -29,9 +29,9 @@ restart_thread.start()
29
  queue = Queue()
30
  queue_threshold = 800
31
 
32
- def add_random_noise(prompt, noise_level=0.07):
33
  if noise_level == 0:
34
- noise_level = 0.07
35
  # Get the percentage of characters to add as noise
36
  percentage_noise = noise_level * 5
37
  # Get the number of characters to add as noise
 
10
  import emoji
11
 
12
 
13
+ text_gen=gr.Interface.load("spaces/phenomenon1981/MagicPrompt-Stable-Diffusion")
14
  def get_prompts(prompt_text):
15
  return text_gen("photo, " + prompt_text)
16
  proc1=gr.Interface.load("models/dreamlike-art/dreamlike-photoreal-2.0")
 
29
  queue = Queue()
30
  queue_threshold = 800
31
 
32
+ def add_random_noise(prompt, noise_level=0.00):
33
  if noise_level == 0:
34
+ noise_level = 0.00
35
  # Get the percentage of characters to add as noise
36
  percentage_noise = noise_level * 5
37
  # Get the number of characters to add as noise