Spaces:
Sleeping
Sleeping
daniellefranca96
commited on
Commit
路
1ce237a
1
Parent(s):
74424c6
Update main.py
Browse files
main.py
CHANGED
@@ -12,7 +12,7 @@ async def stream(item: dict):
|
|
12 |
if 'prompt' not in item.keys():
|
13 |
raise ValueError("prompt 茅 obrigat贸rio")
|
14 |
|
15 |
-
prompt = item['prompt']
|
16 |
temperatura = item['temperatura'] if 'temperatura' in item.keys() else 0.2
|
17 |
max_tokens = item['max_tokens'] if 'max_tokens' in item.keys() else 512
|
18 |
|
|
|
12 |
if 'prompt' not in item.keys():
|
13 |
raise ValueError("prompt 茅 obrigat贸rio")
|
14 |
|
15 |
+
prompt = "<|system|>You are a helpfull assistant</s><|user|>"+item['prompt']+"</s><|assistant|>"
|
16 |
temperatura = item['temperatura'] if 'temperatura' in item.keys() else 0.2
|
17 |
max_tokens = item['max_tokens'] if 'max_tokens' in item.keys() else 512
|
18 |
|