Spaces:
Running
Running
Commit
·
d92c06c
1
Parent(s):
2f0e345
managed to get the temperature to 0.2 for ondemand
Browse files- repository/ondemand.py +1 -1
repository/ondemand.py
CHANGED
@@ -17,7 +17,7 @@ class OndemandRepository(Repository):
|
|
17 |
def init(self):
|
18 |
if not self.session_id:
|
19 |
headers = {"apiKey": os.getenv("API_KEY")}
|
20 |
-
session_body = {"pluginIds": [], "externalUserId": "virtualDAM"}
|
21 |
response = requests.post(self.session_url, headers=headers, json=session_body)
|
22 |
response_data = response.json()
|
23 |
self.session_id = response_data["data"]["id"]
|
|
|
17 |
def init(self):
|
18 |
if not self.session_id:
|
19 |
headers = {"apiKey": os.getenv("API_KEY")}
|
20 |
+
session_body = {"pluginIds": [], "externalUserId": "virtualDAM", "modelConfigs":{"temperature":0.2}}
|
21 |
response = requests.post(self.session_url, headers=headers, json=session_body)
|
22 |
response_data = response.json()
|
23 |
self.session_id = response_data["data"]["id"]
|