Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,6 @@ def get_detailed_instruct(task_description: str, query: str) -> str:
|
|
14 |
return f'Instruct: {task_description}\nQuery: {query}'
|
15 |
|
16 |
def respond(message,
|
17 |
-
history: list[tuple[str, str]],
|
18 |
max_tokens = 2048,
|
19 |
temperature = 0.7,
|
20 |
top_p = 0.95,
|
@@ -74,11 +73,13 @@ def respond(message,
|
|
74 |
messages.append({"role": "assistant", "content": row['assistant']})
|
75 |
|
76 |
#history from chat session
|
|
|
77 |
for val in history:
|
78 |
if val[0]:
|
79 |
messages.append({"role": "user", "content": val[0]})
|
80 |
if val[1]:
|
81 |
messages.append({"role": "assistant", "content": val[1]})
|
|
|
82 |
|
83 |
#latest user question
|
84 |
from googletrans import Translator
|
|
|
14 |
return f'Instruct: {task_description}\nQuery: {query}'
|
15 |
|
16 |
def respond(message,
|
|
|
17 |
max_tokens = 2048,
|
18 |
temperature = 0.7,
|
19 |
top_p = 0.95,
|
|
|
73 |
messages.append({"role": "assistant", "content": row['assistant']})
|
74 |
|
75 |
#history from chat session
|
76 |
+
"""
|
77 |
for val in history:
|
78 |
if val[0]:
|
79 |
messages.append({"role": "user", "content": val[0]})
|
80 |
if val[1]:
|
81 |
messages.append({"role": "assistant", "content": val[1]})
|
82 |
+
"""
|
83 |
|
84 |
#latest user question
|
85 |
from googletrans import Translator
|