pragnakalp commited on
Commit
3b92fb1
1 Parent(s): cb5876d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -126,9 +126,11 @@ def save_data_and_sendmail(results_dict,sen_list,results):
126
  print("commit data :",commit_url)
127
 
128
  hostname = get_device_ip_address()
 
129
  url = 'https://pragnakalpdev35.pythonanywhere.com/hf_space_emotion_detection'
130
  # url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_question_generator'
131
  myobj = {'sen_list': sen_list,'gen_results': results,'ip_addr':hostname.get("ip_addr",""),'host':hostname.get("host","")}
 
132
  x = requests.post(url, json = myobj)
133
 
134
  except Exception as e:
 
126
  print("commit data :",commit_url)
127
 
128
  hostname = get_device_ip_address()
129
+ print("hostname ",hostname)
130
  url = 'https://pragnakalpdev35.pythonanywhere.com/hf_space_emotion_detection'
131
  # url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_question_generator'
132
  myobj = {'sen_list': sen_list,'gen_results': results,'ip_addr':hostname.get("ip_addr",""),'host':hostname.get("host","")}
133
+ print("myobj ",myobj)
134
  x = requests.post(url, json = myobj)
135
 
136
  except Exception as e: