shalanova commited on
Commit
306450a
·
verified ·
1 Parent(s): ad56c6e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -32,6 +32,7 @@ def check_if_passed(username):
32
  certificate_type = ""
33
 
34
  client = Client(SPACE_ID, hf_token=HF_TOKEN)
 
35
  result = client.predict(username, fn_index=0)
36
  with open(result) as json_data:
37
  data = json.load(json_data)
@@ -156,6 +157,7 @@ def create_certificate(passed, certificate_type, hf_username, first_name, last_n
156
 
157
  def certification(hf_username, first_name, last_name):
158
  passed, certificate_type = check_if_passed(hf_username)
 
159
  certificate, message, pdf = create_certificate(passed, certificate_type, hf_username, first_name, last_name)
160
  print("MESSAGE", message)
161
 
 
32
  certificate_type = ""
33
 
34
  client = Client(SPACE_ID, hf_token=HF_TOKEN)
35
+ print(f"CLIENT {client}")
36
  result = client.predict(username, fn_index=0)
37
  with open(result) as json_data:
38
  data = json.load(json_data)
 
157
 
158
  def certification(hf_username, first_name, last_name):
159
  passed, certificate_type = check_if_passed(hf_username)
160
+ print(passed, certificate_type)
161
  certificate, message, pdf = create_certificate(passed, certificate_type, hf_username, first_name, last_name)
162
  print("MESSAGE", message)
163