XCLiu commited on
Commit
d1072a9
·
1 Parent(s): 336be5e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -3
app.py CHANGED
@@ -60,7 +60,6 @@ def set_new_latent_and_generate_new_image(seed, prompt, negative_prompt="", num_
60
  def set_new_latent_and_generate_new_image_with_base_model(seed, prompt, num_inference_steps=1, guidance_scale=0.0):
61
  print('Generate with input seed')
62
  global base_model
63
- global img
64
  negative_prompt=""
65
  seed = int(seed)
66
  num_inference_steps = int(num_inference_steps)
@@ -72,8 +71,6 @@ def set_new_latent_and_generate_new_image_with_base_model(seed, prompt, num_infe
72
  #print('time consumption:', time.time() - t_s)
73
  inf_time = time.time() - t_s
74
 
75
- img = copy.copy(new_image[0])
76
-
77
  return new_image[0], inf_time
78
 
79
 
 
60
  def set_new_latent_and_generate_new_image_with_base_model(seed, prompt, num_inference_steps=1, guidance_scale=0.0):
61
  print('Generate with input seed')
62
  global base_model
 
63
  negative_prompt=""
64
  seed = int(seed)
65
  num_inference_steps = int(num_inference_steps)
 
71
  #print('time consumption:', time.time() - t_s)
72
  inf_time = time.time() - t_s
73
 
 
 
74
  return new_image[0], inf_time
75
 
76