Spaces:
Sleeping
Sleeping
Commit
·
06cf128
1
Parent(s):
351ed73
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ conversation_history = []
|
|
32 |
# Prediction function
|
33 |
def predict(message, system_prompt='', temperature=0.7, max_new_tokens=4096,Topp=0.5,Repetitionpenalty=1.2):
|
34 |
global conversation_history
|
35 |
-
|
36 |
# Append the user's input to the conversation history
|
37 |
conversation_history.append({"role": "system", "content": input_text})
|
38 |
response_text = model(ins.format(question),temperature=temperature,max_new_tokens=max_new_tokens,top_p=Topp,repetition_penality=Repetitionpenalty)
|
|
|
32 |
# Prediction function
|
33 |
def predict(message, system_prompt='', temperature=0.7, max_new_tokens=4096,Topp=0.5,Repetitionpenalty=1.2):
|
34 |
global conversation_history
|
35 |
+
input_text=message
|
36 |
# Append the user's input to the conversation history
|
37 |
conversation_history.append({"role": "system", "content": input_text})
|
38 |
response_text = model(ins.format(question),temperature=temperature,max_new_tokens=max_new_tokens,top_p=Topp,repetition_penality=Repetitionpenalty)
|