Commit
·
44b114c
1
Parent(s):
bbd4ef9
Update app.py
Browse files
app.py
CHANGED
@@ -94,7 +94,7 @@ def save_data_and_sendmail(article,generated_questions,num_que,result):
|
|
94 |
hostname = get_device_ip_address()
|
95 |
url = 'https://pragnakalpdev35.pythonanywhere.com/HF_space_que_gen'
|
96 |
# url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_question_generator'
|
97 |
-
myobj = {'article': article,'gen_que':result,'ip_addr':hostname.get("ip_addr",""),'host':hostname.get("host","")}
|
98 |
x = requests.post(url, json = myobj)
|
99 |
add_csv = [article, generated_questions, num_que]
|
100 |
with open(DATA_FILE, "a") as f:
|
|
|
94 |
hostname = get_device_ip_address()
|
95 |
url = 'https://pragnakalpdev35.pythonanywhere.com/HF_space_que_gen'
|
96 |
# url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_question_generator'
|
97 |
+
myobj = {'article': article,'total_que': num_que,'gen_que':result,'ip_addr':hostname.get("ip_addr",""),'host':hostname.get("host","")}
|
98 |
x = requests.post(url, json = myobj)
|
99 |
add_csv = [article, generated_questions, num_que]
|
100 |
with open(DATA_FILE, "a") as f:
|