Spaces:
Sleeping
Sleeping
Commit
·
321af90
1
Parent(s):
c3dbe37
Updating application file
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ def chat_with_carse(api_key, message):
|
|
32 |
|
33 |
response = openai.ChatCompletion.create(
|
34 |
model = "ft:gpt-3.5-turbo-1106:personal:carse-final-2:8UUvqTkB",
|
35 |
-
temperature = 0.
|
36 |
messages=conversation
|
37 |
)
|
38 |
|
@@ -62,7 +62,7 @@ with gr.Blocks() as app:
|
|
62 |
def update_chat(api_key, message):
|
63 |
response = chat_with_carse(api_key, message)
|
64 |
# Formatear el historial para mostrar los nombres reales
|
65 |
-
display_chat_history = "\n
|
66 |
return display_chat_history, ""
|
67 |
|
68 |
|
|
|
32 |
|
33 |
response = openai.ChatCompletion.create(
|
34 |
model = "ft:gpt-3.5-turbo-1106:personal:carse-final-2:8UUvqTkB",
|
35 |
+
temperature = 0.4,
|
36 |
messages=conversation
|
37 |
)
|
38 |
|
|
|
62 |
def update_chat(api_key, message):
|
63 |
response = chat_with_carse(api_key, message)
|
64 |
# Formatear el historial para mostrar los nombres reales
|
65 |
+
display_chat_history = "\n".join([f"{msg['name']}: {msg['content']}" for msg in conversation_history])
|
66 |
return display_chat_history, ""
|
67 |
|
68 |
|