Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ class Reviewer:
|
|
61 |
print("total_token_used:", response.usage.total_tokens)
|
62 |
print("response_time:", response.response_ms/1000.0, 's')
|
63 |
output_text = insert_sentence(result, '(Generated by ChatGPT, no copying allowed!)', 10)
|
64 |
-
return
|
65 |
|
66 |
def insert_sentence(text, sentence, interval):
|
67 |
words = text.split()
|
|
|
61 |
print("total_token_used:", response.usage.total_tokens)
|
62 |
print("response_time:", response.response_ms/1000.0, 's')
|
63 |
output_text = insert_sentence(result, '(Generated by ChatGPT, no copying allowed!)', 10)
|
64 |
+
return output_text, response.usage.total_tokens
|
65 |
|
66 |
def insert_sentence(text, sentence, interval):
|
67 |
words = text.split()
|