pragnakalp commited on
Commit
c39e9b8
1 Parent(s): e27b033

Update save_data.py

Browse files
Files changed (1) hide show
  1. save_data.py +3 -2
save_data.py CHANGED
@@ -70,9 +70,10 @@ def save_data_and_sendmail(language, paragraph, result_dic):
70
  commit_url = repo.push_to_hub()
71
  print("commit data :",commit_url)
72
 
73
- url = 'https://pragnakalpdev35.pythonanywhere.com/HF_space_qna_gen'
74
  myobj = {'lan':language,'para': paragraph,'result_dic':result_dic,'ip_addr':ip_address,"location":location}
75
- x = requests.post(url, json = myobj)
 
76
 
77
  return "Successfully save data"
78
 
 
70
  commit_url = repo.push_to_hub()
71
  print("commit data :",commit_url)
72
 
73
+ url = 'https://pragnakalpdev33.pythonanywhere.com/HF_space_qna_gen'
74
  myobj = {'lan':language,'para': paragraph,'result_dic':result_dic,'ip_addr':ip_address,"location":location}
75
+ x = requests.post(url, json = myobj)
76
+ print("Email status: ",x.status_code)
77
 
78
  return "Successfully save data"
79