shnippi commited on
Commit
ed8fa7a
·
1 Parent(s): 3b59853
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -30,6 +30,11 @@ def email(linkedin_url, description_of_what_you_are_selling = "A flowchart tool
30
  print(resp)
31
  print("the email is: " + str(resp["person"]["email"]))
32
 
 
 
 
 
 
33
  email_address = str(resp["person"]["email"])
34
 
35
 
 
30
  print(resp)
31
  print("the email is: " + str(resp["person"]["email"]))
32
 
33
+
34
+ # shorten the json if too long, otherwise 400 for openai
35
+ if len(str(resp)) > 8000:
36
+ resp = str(resp)[0:8000]
37
+
38
  email_address = str(resp["person"]["email"])
39
 
40