Update generate_text.py
Browse files- 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
|
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:
|