pragnakalp commited on
Commit
bc08c08
1 Parent(s): 0507acf

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -132,7 +132,8 @@ def save_data_and_sendmail(article,results_dict,sen_list,results):
132
 
133
  url = 'https://pragnakalpdev33.pythonanywhere.com/hf_space_emotion_detection'
134
  # url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_question_generator'
135
- myobj = {'sen_list': sen_list,'gen_results': results,'ip_addr':hostname.get("ip_addr",""),'host':hostname.get("host","")}
 
136
  x = requests.post(url, json = myobj)
137
  print("myobj ",myobj)
138
 
 
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
  x = requests.post(url, json = myobj)
138
  print("myobj ",myobj)
139