Spaces:
Sleeping
Sleeping
Ilya
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def llm_inference(user_sample):
|
|
11 |
eos_token = "<|endoftext|>"
|
12 |
output = client.chat.completions.create(
|
13 |
messages=[
|
14 |
-
{"role": "system", "content": "You are a Python language guide. Write code on the user topic.
|
15 |
{"role": "user", "content": f"Write only python code without any explanation: {user_sample}"},
|
16 |
],
|
17 |
stream=False,
|
|
|
11 |
eos_token = "<|endoftext|>"
|
12 |
output = client.chat.completions.create(
|
13 |
messages=[
|
14 |
+
{"role": "system", "content": "You are a Python language guide. Write code on the user topic. If the input is code, correct it for mistakes."},
|
15 |
{"role": "user", "content": f"Write only python code without any explanation: {user_sample}"},
|
16 |
],
|
17 |
stream=False,
|