mirror of
https://github.com/azaion/ai-training.git
synced 2026-04-22 11:16:35 +00:00
make hardware_service works on linux
This commit is contained in:
+2
-2
@@ -60,7 +60,7 @@ class ApiClient:
|
||||
print(f"Upload fail: {e}")
|
||||
|
||||
def load_bytes(self, filename, folder):
|
||||
hardware = get_hardware_info()
|
||||
hardware_str = get_hardware_info()
|
||||
|
||||
if self.token is None:
|
||||
self.login()
|
||||
@@ -73,7 +73,7 @@ class ApiClient:
|
||||
payload = json.dumps(
|
||||
{
|
||||
"password": self.credentials.password,
|
||||
"hardware": hardware.to_json_object(),
|
||||
"hardware": hardware_str,
|
||||
"fileName": filename
|
||||
}, indent=4)
|
||||
response = requests.post(url, data=payload, headers=headers, stream=True)
|
||||
|
||||
Reference in New Issue
Block a user