Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -224,7 +224,7 @@ def chat(system, prompt, selected_model_name, seed=None, num_exchanges=5):
|
|
| 224 |
model=selected_model_name,
|
| 225 |
messages=messages,
|
| 226 |
max_tokens=150,
|
| 227 |
-
temperature=
|
| 228 |
seed=seed # Use base seed for first AI response
|
| 229 |
)
|
| 230 |
ai_response_content = ai_response_obj.choices[0].message.content.strip()
|
|
@@ -245,7 +245,7 @@ def chat(system, prompt, selected_model_name, seed=None, num_exchanges=5):
|
|
| 245 |
model=selected_model_name, # Can use the same model
|
| 246 |
messages=follow_up_prompt_messages,
|
| 247 |
max_tokens=70,
|
| 248 |
-
temperature=
|
| 249 |
seed=seed + 1000 + i # Vary seed for human follow-up generation
|
| 250 |
)
|
| 251 |
human_follow_up_content = human_follow_up_obj.choices[0].message.content.strip()
|
|
@@ -258,7 +258,7 @@ def chat(system, prompt, selected_model_name, seed=None, num_exchanges=5):
|
|
| 258 |
model=selected_model_name,
|
| 259 |
messages=messages, # messages now includes the human follow-up
|
| 260 |
max_tokens=150,
|
| 261 |
-
temperature=
|
| 262 |
seed=seed + 2000 + i # Vary seed for next AI response
|
| 263 |
)
|
| 264 |
ai_response_content = ai_response_obj.choices[0].message.content.strip()
|
|
|
|
| 224 |
model=selected_model_name,
|
| 225 |
messages=messages,
|
| 226 |
max_tokens=150,
|
| 227 |
+
temperature=1,
|
| 228 |
seed=seed # Use base seed for first AI response
|
| 229 |
)
|
| 230 |
ai_response_content = ai_response_obj.choices[0].message.content.strip()
|
|
|
|
| 245 |
model=selected_model_name, # Can use the same model
|
| 246 |
messages=follow_up_prompt_messages,
|
| 247 |
max_tokens=70,
|
| 248 |
+
temperature=1,
|
| 249 |
seed=seed + 1000 + i # Vary seed for human follow-up generation
|
| 250 |
)
|
| 251 |
human_follow_up_content = human_follow_up_obj.choices[0].message.content.strip()
|
|
|
|
| 258 |
model=selected_model_name,
|
| 259 |
messages=messages, # messages now includes the human follow-up
|
| 260 |
max_tokens=150,
|
| 261 |
+
temperature=1
|
| 262 |
seed=seed + 2000 + i # Vary seed for next AI response
|
| 263 |
)
|
| 264 |
ai_response_content = ai_response_obj.choices[0].message.content.strip()
|