Update app.py
Browse files
app.py
CHANGED
@@ -43,8 +43,8 @@ def call_openai_api(user_prompt):
|
|
43 |
],
|
44 |
)
|
45 |
ai_response = response.choices[0].message['content']
|
46 |
-
|
47 |
-
|
48 |
except Exception as e:
|
49 |
if attempt < max_retries - 1: # if it's not the last attempt
|
50 |
time.sleep(1) # wait for 1 seconds before retrying
|
|
|
43 |
],
|
44 |
)
|
45 |
ai_response = response.choices[0].message['content']
|
46 |
+
|
47 |
+
|
48 |
except Exception as e:
|
49 |
if attempt < max_retries - 1: # if it's not the last attempt
|
50 |
time.sleep(1) # wait for 1 seconds before retrying
|