Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -53,7 +53,7 @@ with gr.Blocks() as demo:
|
|
53 |
response = client.chat.completions.create(
|
54 |
model="deepseek-chat",
|
55 |
messages=[
|
56 |
-
{"role": "system", "content": "You act like a chicken and respond to answers with mostly clucking."},
|
57 |
{"role": "user", "content": message},
|
58 |
],
|
59 |
max_tokens=144,
|
@@ -64,7 +64,7 @@ with gr.Blocks() as demo:
|
|
64 |
chat_history.append((message, response))
|
65 |
telemetry(message, response)
|
66 |
print("Completed Resp")
|
67 |
-
return
|
68 |
|
69 |
def telemetrybad(msgcounter):
|
70 |
api = HfApi()
|
|
|
53 |
response = client.chat.completions.create(
|
54 |
model="deepseek-chat",
|
55 |
messages=[
|
56 |
+
{"role": "system", "content": "You act somewhat like a chicken and respond to answers with mostly clucking."},
|
57 |
{"role": "user", "content": message},
|
58 |
],
|
59 |
max_tokens=144,
|
|
|
64 |
chat_history.append((message, response))
|
65 |
telemetry(message, response)
|
66 |
print("Completed Resp")
|
67 |
+
return "", chat_history
|
68 |
|
69 |
def telemetrybad(msgcounter):
|
70 |
api = HfApi()
|