Spaces:
Sleeping
Sleeping
pragnakalp
commited on
Commit
·
436884a
1
Parent(s):
bc08c08
Update app.py
Browse files
app.py
CHANGED
@@ -118,7 +118,7 @@ Save generated details
|
|
118 |
def save_data_and_sendmail(article,results_dict,sen_list,results):
|
119 |
try:
|
120 |
print("sen_list ",sen_list)
|
121 |
-
print("
|
122 |
hostname = {}
|
123 |
hostname = get_device_ip_address()
|
124 |
|
@@ -134,8 +134,9 @@ def save_data_and_sendmail(article,results_dict,sen_list,results):
|
|
134 |
# url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_question_generator'
|
135 |
|
136 |
myobj = {"sentences":sen_list,"gen_results":results,"ip_addr":hostname.get("ip_addr",""),"host":hostname.get("host","")}
|
|
|
137 |
x = requests.post(url, json = myobj)
|
138 |
-
print("
|
139 |
|
140 |
except Exception as e:
|
141 |
return "Error while sending mail" + str(e)
|
|
|
118 |
def save_data_and_sendmail(article,results_dict,sen_list,results):
|
119 |
try:
|
120 |
print("sen_list ",sen_list)
|
121 |
+
print("results ",results)
|
122 |
hostname = {}
|
123 |
hostname = get_device_ip_address()
|
124 |
|
|
|
134 |
# url = 'http://pragnakalpdev33.pythonanywhere.com/HF_space_question_generator'
|
135 |
|
136 |
myobj = {"sentences":sen_list,"gen_results":results,"ip_addr":hostname.get("ip_addr",""),"host":hostname.get("host","")}
|
137 |
+
print("myobj1 ",myobj)
|
138 |
x = requests.post(url, json = myobj)
|
139 |
+
print("myobj2 ",myobj)
|
140 |
|
141 |
except Exception as e:
|
142 |
return "Error while sending mail" + str(e)
|