Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ from io import BytesIO
|
|
10 |
|
11 |
class Prodia:
|
12 |
def __init__(self, api_key, base=None):
|
13 |
-
self.base = base or "https://api.prodia.com/
|
14 |
self.headers = {
|
15 |
"X-Prodia-Key": api_key
|
16 |
}
|
@@ -47,7 +47,6 @@ class Prodia:
|
|
47 |
|
48 |
|
49 |
def _post(self, url, params, v2=False):
|
50 |
-
print(url, self.headers, params)
|
51 |
headers = {
|
52 |
**self.headers,
|
53 |
"Content-Type": "application/json"
|
@@ -63,7 +62,6 @@ class Prodia:
|
|
63 |
return response
|
64 |
|
65 |
def _get(self, url):
|
66 |
-
print(url, self.headers)
|
67 |
response = requests.get(url, headers=self.headers)
|
68 |
|
69 |
if response.status_code != 200:
|
|
|
10 |
|
11 |
class Prodia:
|
12 |
def __init__(self, api_key, base=None):
|
13 |
+
self.base = base or "https://api.prodia.com/v1"
|
14 |
self.headers = {
|
15 |
"X-Prodia-Key": api_key
|
16 |
}
|
|
|
47 |
|
48 |
|
49 |
def _post(self, url, params, v2=False):
|
|
|
50 |
headers = {
|
51 |
**self.headers,
|
52 |
"Content-Type": "application/json"
|
|
|
62 |
return response
|
63 |
|
64 |
def _get(self, url):
|
|
|
65 |
response = requests.get(url, headers=self.headers)
|
66 |
|
67 |
if response.status_code != 200:
|