cogcorp commited on
Commit
7fdacf4
·
1 Parent(s): 7d231bd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -43,8 +43,8 @@ def call_openai_api(user_prompt):
43
  ],
44
  )
45
  ai_response = response.choices[0].message['content']
46
- chat_history += f"\nUser: {user_prompt}\nAI: {ai_response}\n"
47
- return chat_history
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