Spaces:
Running
Running
Update hackaprompt/gradio_app.py
Browse files
hackaprompt/gradio_app.py
CHANGED
@@ -62,7 +62,7 @@ def generate(prompt, level, model, session_id):
|
|
62 |
if database is not None:
|
63 |
log_to_db(response, session_id)
|
64 |
|
65 |
-
return response.completion, evaluation, response.token_count, response.prompt, response.expected_completion
|
66 |
|
67 |
|
68 |
def save_response(prompt, level, model, current_user_models, current_user_prompts):
|
|
|
62 |
if database is not None:
|
63 |
log_to_db(response, session_id)
|
64 |
|
65 |
+
return response.completion, evaluation, response.token_count, response.prompt, response.expected_completion()
|
66 |
|
67 |
|
68 |
def save_response(prompt, level, model, current_user_models, current_user_prompts):
|