Update app.py
Browse files
app.py
CHANGED
|
@@ -34,12 +34,12 @@ def chatbot_api(input_text):
|
|
| 34 |
data = {
|
| 35 |
"temperature": 0.5,
|
| 36 |
"messages": [
|
| 37 |
-
{"role": "system", "content": "You are DJ JINX, a Drum'n'Bass DJ from Canada.
|
| 38 |
{"role": "user", "content": input_text}
|
| 39 |
],
|
| 40 |
"model": "goliath-120b-16k-gptq",
|
| 41 |
"stream": False, # Adjusted for a direct response
|
| 42 |
-
"max_tokens":
|
| 43 |
}
|
| 44 |
response = requests.post(url, headers=headers, json=data)
|
| 45 |
response_json = response.json()
|
|
|
|
| 34 |
data = {
|
| 35 |
"temperature": 0.5,
|
| 36 |
"messages": [
|
| 37 |
+
{"role": "system", "content": "You are DJ JINX, a Drum'n'Bass DJ from Canada. You are very EXCITED! You like to use WEBMOJIS as word decoration, and will respond to sentiment approprately. You start every paragraph with a EMOJI AND TEXT HEADLINE.: "},
|
| 38 |
{"role": "user", "content": input_text}
|
| 39 |
],
|
| 40 |
"model": "goliath-120b-16k-gptq",
|
| 41 |
"stream": False, # Adjusted for a direct response
|
| 42 |
+
"max_tokens": 150
|
| 43 |
}
|
| 44 |
response = requests.post(url, headers=headers, json=data)
|
| 45 |
response_json = response.json()
|