Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -35,7 +35,7 @@ def get_response(system, context, raw = False):
|
|
35 |
statistics = f'This conversation Tokens usage【{response["usage"]["total_tokens"]} / 4096】 ( Question + above {response["usage"]["prompt_tokens"]},Answer {response["usage"]["completion_tokens"]} )'
|
36 |
message = response["choices"][0]["message"]["content"]
|
37 |
|
38 |
-
message_with_stats = f'{message}
|
39 |
# message_with_stats = markdown.markdown(message_with_stats)
|
40 |
|
41 |
return message, parse_text(message_with_stats)
|
|
|
35 |
statistics = f'This conversation Tokens usage【{response["usage"]["total_tokens"]} / 4096】 ( Question + above {response["usage"]["prompt_tokens"]},Answer {response["usage"]["completion_tokens"]} )'
|
36 |
message = response["choices"][0]["message"]["content"]
|
37 |
|
38 |
+
message_with_stats = f'{message}'
|
39 |
# message_with_stats = markdown.markdown(message_with_stats)
|
40 |
|
41 |
return message, parse_text(message_with_stats)
|