Commit
·
2ca183b
1
Parent(s):
775da43
Update app.py
Browse files
app.py
CHANGED
@@ -93,9 +93,9 @@ def save_data_and_sendmail(article,generated_questions,num_que,result):
|
|
93 |
num_que1 = num_que
|
94 |
result1 = result
|
95 |
hostname = get_device_ip_address()
|
96 |
-
|
97 |
-
|
98 |
-
url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_question_generator'
|
99 |
myobj = {'article': article1,'gen_que':result1,'ip_addr':hostname.get("ip_addr",""),'host':hostname.get("host","")}
|
100 |
print("myobj ",myobj)
|
101 |
x = requests.post(url, json = myobj)
|
|
|
93 |
num_que1 = num_que
|
94 |
result1 = result
|
95 |
hostname = get_device_ip_address()
|
96 |
+
print(hostname)
|
97 |
+
url = 'https://pragnakalpdev35.pythonanywhere.com/HF_space_que_gen'
|
98 |
+
# url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_question_generator'
|
99 |
myobj = {'article': article1,'gen_que':result1,'ip_addr':hostname.get("ip_addr",""),'host':hostname.get("host","")}
|
100 |
print("myobj ",myobj)
|
101 |
x = requests.post(url, json = myobj)
|