ysharma HF staff commited on
Commit
e83d19e
·
1 Parent(s): 2296f44
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -32,7 +32,7 @@ def chat(image_in, message, history): #, progress=gr.Progress(track_tqdm=True)):
32
  edited_image = pipe(prompt, image=image_in, num_inference_steps=20, image_guidance_scale=1).images[0]
33
  edited_image.save("edited_image.png") #("./edited_image.png")
34
  history = history or []
35
- add_text_list = ["There you go", "Enjoy your image!", "Nice work! Wonder what you gonna do next!", "Way to go!", "Does this work for you?", "Something like this?"]
36
  #Resizing the image for better display
37
  response = random.choice(add_text_list) + '<img src="/file=edited_image.png" style="width: 200px; height: 200px;">'
38
  history.append((message, response))
 
32
  edited_image = pipe(prompt, image=image_in, num_inference_steps=20, image_guidance_scale=1).images[0]
33
  edited_image.save("edited_image.png") #("./edited_image.png")
34
  history = history or []
35
+ add_text_list = ["There you go ", "Enjoy your image! ", "Nice work! Wonder what you gonna do next! ", "Way to go! ", "Does this work for you? ", "Something like this? "]
36
  #Resizing the image for better display
37
  response = random.choice(add_text_list) + '<img src="/file=edited_image.png" style="width: 200px; height: 200px;">'
38
  history.append((message, response))