Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -19,21 +19,21 @@ def http_bot_yield(prompt):
|
|
19 |
system_message = """
|
20 |
Below is an instruction that describes a task. Write a response that appropriately completes the request.
|
21 |
"""
|
22 |
-
# pload = {
|
23 |
-
# "prompt": f"<s>[INST] {prompt} [/INST] ",
|
24 |
-
# "stream": True,
|
25 |
-
# "max_tokens": 1024,
|
26 |
-
# "temperature": 0.1
|
27 |
-
# }
|
28 |
-
|
29 |
pload = {
|
30 |
-
"prompt": f"
|
31 |
"stream": True,
|
32 |
-
"max_tokens":
|
33 |
"temperature": 0.1
|
34 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
response = requests.post(
|
36 |
-
'http://
|
37 |
headers=headers,
|
38 |
json=pload,
|
39 |
stream=True
|
|
|
19 |
system_message = """
|
20 |
Below is an instruction that describes a task. Write a response that appropriately completes the request.
|
21 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
pload = {
|
23 |
+
"prompt": f"<s>[INST] {prompt} [/INST] ",
|
24 |
"stream": True,
|
25 |
+
"max_tokens": 1024,
|
26 |
"temperature": 0.1
|
27 |
}
|
28 |
+
|
29 |
+
# pload = {
|
30 |
+
# "prompt": f"### System:\n{system_message}\n\n\n\n### Instruction:\n{prompt}\n\n### Response:\n",
|
31 |
+
# "stream": True,
|
32 |
+
# "max_tokens": 2048,
|
33 |
+
# "temperature": 0.1
|
34 |
+
# }
|
35 |
response = requests.post(
|
36 |
+
'http://164.52.200.104/generate',
|
37 |
headers=headers,
|
38 |
json=pload,
|
39 |
stream=True
|