arxivgpt kim commited on
Commit
7cb80ff
·
verified ·
1 Parent(s): cb82e3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -30,6 +30,10 @@ def predict(inputs):
30
  "Authorization": f"Bearer {OPENAI_API_KEY}"
31
  }
32
 
 
 
 
 
33
  try:
34
  response = requests.post(API_URL, headers=headers, json=payload)
35
  if response.status_code == 200:
 
30
  "Authorization": f"Bearer {OPENAI_API_KEY}"
31
  }
32
 
33
+
34
+ # 확인할 사항: 요청을 보내는 코드 부분이 올바른가?
35
+ response = requests.post(API_URL, headers=headers, json=payload)
36
+
37
  try:
38
  response = requests.post(API_URL, headers=headers, json=payload)
39
  if response.status_code == 200: