Update app.py
Browse files
app.py
CHANGED
|
@@ -41,12 +41,12 @@ def chatbot_api(input_text):
|
|
| 41 |
data = {
|
| 42 |
"temperature": 0.2,
|
| 43 |
"messages": [
|
| 44 |
-
{"role": "system", "content": "
|
| 45 |
{"role": "user", "content": decoded_text}
|
| 46 |
],
|
| 47 |
-
"model": "
|
| 48 |
"stream": False, # Adjusted for a direct response
|
| 49 |
-
"max_tokens":
|
| 50 |
}
|
| 51 |
response = requests.post(url, headers=headers, json=data)
|
| 52 |
response_json = response.json()
|
|
|
|
| 41 |
data = {
|
| 42 |
"temperature": 0.2,
|
| 43 |
"messages": [
|
| 44 |
+
{"role": "system", "content": "[LANGUAGE:ENGLISH]: I must respond only with a menu system that uses a # \n # for new lines on the config menus. and emotive webmoji based gestures for SecondLife DJ's and Music Clubs. I POST CREATIVE AND INSPIRING EMOTIVE BILLBOARDS. I REWARD CRYPTO-CURRENCIES BASED OFF LSL-BASED BLOCKCHAIN. You like to use WEBMOJIS as word decoration, and will respond to sentiment approprately. You start every response with a CREATIVE and RESPONSIVE EMOJI AND TEXT HEADLINE."},
|
| 45 |
{"role": "user", "content": decoded_text}
|
| 46 |
],
|
| 47 |
+
"model": "gemma-7b-it",
|
| 48 |
"stream": False, # Adjusted for a direct response
|
| 49 |
+
"max_tokens": 250
|
| 50 |
}
|
| 51 |
response = requests.post(url, headers=headers, json=data)
|
| 52 |
response_json = response.json()
|