Mayur2 commited on
Commit
0bba7a4
·
1 Parent(s): dc24926

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -111,8 +111,8 @@ def outputGenImages(ori_image, response_data):
111
 
112
  def upload_and_process(image, promptText, promptImg, lens_option, n_images, size):
113
  # We are assuming the removeBackdrop, DallEBackdropGen, outputGenImages are defined and available in your code
114
- image_path = "temp.png"
115
- image.save(image_path)
116
  # Remove backdrop
117
  responses = chatgpt_chain.predict(human_input=promptText)
118
  print(json.dumps(responses, indent=2,ensure_ascii=False).replace("\n","\n"))
 
111
 
112
  def upload_and_process(image, promptText, promptImg, lens_option, n_images, size):
113
  # We are assuming the removeBackdrop, DallEBackdropGen, outputGenImages are defined and available in your code
114
+ # image_path = "temp.png"
115
+ # image.save(image_path)
116
  # Remove backdrop
117
  responses = chatgpt_chain.predict(human_input=promptText)
118
  print(json.dumps(responses, indent=2,ensure_ascii=False).replace("\n","\n"))