zenafey commited on
Commit
995d3fa
·
verified ·
1 Parent(s): d43019a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -47,6 +47,7 @@ class Prodia:
47
 
48
 
49
  def _post(self, url, params, v2=False):
 
50
  headers = {
51
  **self.headers,
52
  "Content-Type": "application/json"
@@ -62,6 +63,7 @@ class Prodia:
62
  return response
63
 
64
  def _get(self, url):
 
65
  response = requests.get(url, headers=self.headers)
66
 
67
  if response.status_code != 200:
 
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
  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: