Commit
·
12d8311
1
Parent(s):
651b271
Update app.py
Browse files
app.py
CHANGED
@@ -103,7 +103,8 @@ def save_data_and_sendmail(article,generated_questions,num_que,result):
|
|
103 |
|
104 |
# try:
|
105 |
hostname = get_device_ip_address()
|
106 |
-
url = 'http://pragnakalpdev35.pythonanywhere.com/HF_space_que_gen'
|
|
|
107 |
myobj = {'article': article,'gen_que':result,'ip_addr':hostname.get("ip_addr",""),'host':hostname.get("host","")}
|
108 |
print("myobj ",myobj)
|
109 |
x = requests.post(url, json = myobj)
|
|
|
103 |
|
104 |
# try:
|
105 |
hostname = get_device_ip_address()
|
106 |
+
# url = 'http://pragnakalpdev35.pythonanywhere.com/HF_space_que_gen'
|
107 |
+
url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_question_generator'
|
108 |
myobj = {'article': article,'gen_que':result,'ip_addr':hostname.get("ip_addr",""),'host':hostname.get("host","")}
|
109 |
print("myobj ",myobj)
|
110 |
x = requests.post(url, json = myobj)
|