pragnakalp commited on
Commit
ba64d69
·
1 Parent(s): d37c9e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -130,12 +130,14 @@ def save_data_and_sendmail(article,results_dict,sen_list,results):
130
  commit_url = repo.push_to_hub()
131
  print("commit data :",commit_url)
132
 
133
- url = 'https://pragnakalpdev33.pythonanywhere.com/hf_space_emotion_detection'
 
134
  # url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_question_generator'
135
 
136
  myobj = {"sentences":sen_list,"gen_results":results,"ip_addr":hostname.get("ip_addr",""),"host":hostname.get("host","")}
137
  print("myobj###### ",myobj)
138
- x = requests.post(url, json = myobj)
 
139
  print("myobj2$$$$$ ",myobj)
140
 
141
  except Exception as e:
 
130
  commit_url = repo.push_to_hub()
131
  print("commit data :",commit_url)
132
 
133
+ # url = 'https://pragnakalpdev33.pythonanywhere.com/hf_space_emotion_detection'
134
+ url = 'https://pragnakalpdev35.pythonanywhere.com/HF_space_emotion_detection'
135
  # url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_question_generator'
136
 
137
  myobj = {"sentences":sen_list,"gen_results":results,"ip_addr":hostname.get("ip_addr",""),"host":hostname.get("host","")}
138
  print("myobj###### ",myobj)
139
+ response = requests.post(url, json = myobj)
140
+ print("response=-----=",response.status_code)
141
  print("myobj2$$$$$ ",myobj)
142
 
143
  except Exception as e: