Commit
·
e5e3391
1
Parent(s):
421e871
Update app.py
Browse files
app.py
CHANGED
@@ -101,7 +101,7 @@ def generate_questions(article,num_que):
|
|
101 |
"""
|
102 |
Save generated details
|
103 |
"""
|
104 |
-
def save_data_and_sendmail(article,generated_questions,num_que
|
105 |
try:
|
106 |
ip_address = ''
|
107 |
ip_address = get_device_ip_address()
|
@@ -118,7 +118,7 @@ def save_data_and_sendmail(article,generated_questions,num_que,result):
|
|
118 |
|
119 |
url = 'https://pragnakalpdev35.pythonanywhere.com/HF_space_que_gen'
|
120 |
# url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_question_generator'
|
121 |
-
myobj = {'article': article,'total_que': num_que,'gen_que':
|
122 |
x = requests.post(url, json = myobj)
|
123 |
print("myobj^^^^^",myobj)
|
124 |
# with open(DATA_FILE, "r") as file:
|
|
|
101 |
"""
|
102 |
Save generated details
|
103 |
"""
|
104 |
+
def save_data_and_sendmail(article,generated_questions,num_que):
|
105 |
try:
|
106 |
ip_address = ''
|
107 |
ip_address = get_device_ip_address()
|
|
|
118 |
|
119 |
url = 'https://pragnakalpdev35.pythonanywhere.com/HF_space_que_gen'
|
120 |
# url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_question_generator'
|
121 |
+
myobj = {'article': article,'total_que': num_que,'gen_que':generated_questions,'ip_addr':ip_address}
|
122 |
x = requests.post(url, json = myobj)
|
123 |
print("myobj^^^^^",myobj)
|
124 |
# with open(DATA_FILE, "r") as file:
|