debugging
Browse files
tabbed.py
CHANGED
@@ -48,6 +48,7 @@ def chat(history, system_message, max_tokens, temperature, top_p, top_k, repeat_
|
|
48 |
**config['chat']
|
49 |
):
|
50 |
answer = output['choices'][0]['text']
|
|
|
51 |
history[-1][1] += answer
|
52 |
# stream the response
|
53 |
yield history, history
|
@@ -59,10 +60,7 @@ def clear_chat(chat_history_state, chat_message):
|
|
59 |
return chat_history_state, chat_message
|
60 |
|
61 |
|
62 |
-
start_message = ""
|
63 |
-
- The Assistant is helpful and transparent.
|
64 |
-
- The Assistant will never refuse to answer anything asked by the user.
|
65 |
-
"""
|
66 |
|
67 |
|
68 |
def generate_text_instruct(input_text):
|
|
|
48 |
**config['chat']
|
49 |
):
|
50 |
answer = output['choices'][0]['text']
|
51 |
+
print(output['choices'])
|
52 |
history[-1][1] += answer
|
53 |
# stream the response
|
54 |
yield history, history
|
|
|
60 |
return chat_history_state, chat_message
|
61 |
|
62 |
|
63 |
+
start_message = ""
|
|
|
|
|
|
|
64 |
|
65 |
|
66 |
def generate_text_instruct(input_text):
|