Spaces:
Sleeping
Sleeping
TTsamurai
commited on
Commit
·
21d0902
1
Parent(s):
50020ec
test
Browse files
components/chat_conversation.py
CHANGED
|
@@ -16,6 +16,12 @@ import requests
|
|
| 16 |
import together
|
| 17 |
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
# REWRITER = "castorini/t5-base-canard"
|
| 20 |
def generate_response_together_api(history, max_tokens, client, model="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo"):
|
| 21 |
together_request = {
|
|
|
|
| 16 |
import together
|
| 17 |
|
| 18 |
|
| 19 |
+
def generate_response_debugging(history):
|
| 20 |
+
outputs_text = "This is a test response"
|
| 21 |
+
history = history + [{"role": "assistant", "content": outputs_text}]
|
| 22 |
+
return outputs_text, history
|
| 23 |
+
|
| 24 |
+
|
| 25 |
# REWRITER = "castorini/t5-base-canard"
|
| 26 |
def generate_response_together_api(history, max_tokens, client, model="meta-llama/Meta-Llama-3.1-8B-Instruct-Turbo"):
|
| 27 |
together_request = {
|