kimpudding commited on
Commit
3c2e636
ยท
verified ยท
1 Parent(s): 927e9a7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -150,10 +150,10 @@ def generate_response(user_prompt):
150
  return user_prompt, response.choices[0].message.content
151
  except openai.OpenAIError as e:
152
  # OpenAI ๊ด€๋ จ ์—๋Ÿฌ ์ฒ˜๋ฆฌ
153
- return f"OpenAI API ์˜ค๋ฅ˜: {str(e)}"
154
  except Exception as e:
155
  # ๊ธฐํƒ€ ์—๋Ÿฌ ์ฒ˜๋ฆฌ
156
- return f"์•Œ ์ˆ˜ ์—†๋Š” ์˜ค๋ฅ˜ ๋ฐœ์ƒ: {str(e)}"
157
 
158
  def add_alpha(image, alpha_value=255):
159
  """
 
150
  return user_prompt, response.choices[0].message.content
151
  except openai.OpenAIError as e:
152
  # OpenAI ๊ด€๋ จ ์—๋Ÿฌ ์ฒ˜๋ฆฌ
153
+ return user_prompt, f"OpenAI API ์˜ค๋ฅ˜: {str(e)}"
154
  except Exception as e:
155
  # ๊ธฐํƒ€ ์—๋Ÿฌ ์ฒ˜๋ฆฌ
156
+ return user_prompt, f"์•Œ ์ˆ˜ ์—†๋Š” ์˜ค๋ฅ˜ ๋ฐœ์ƒ: {str(e)}"
157
 
158
  def add_alpha(image, alpha_value=255):
159
  """