laxsvips commited on
Commit
3f53b5c
1 Parent(s): c1462f3

Update generate_text.py

Browse files
Files changed (1) hide show
  1. generate_text.py +1 -1
generate_text.py CHANGED
@@ -24,7 +24,7 @@ def call_gpt(prompt):
24
  )
25
 
26
  text = response.choices[0].message.content
27
- return response
28
  except Exception as oops:
29
  retry += 1
30
  if retry >= max_retry:
 
24
  )
25
 
26
  text = response.choices[0].message.content
27
+ return text
28
  except Exception as oops:
29
  retry += 1
30
  if retry >= max_retry: