Spaces:
Runtime error
Runtime error
Commit ·
8389f25
1
Parent(s): 6368b03
Update app.py
Browse files
app.py
CHANGED
|
@@ -131,9 +131,9 @@ def save_data_and_sendmail(article,output):
|
|
| 131 |
commit_url = repo.push_to_hub()
|
| 132 |
print("commit data :",commit_url)
|
| 133 |
|
| 134 |
-
|
| 135 |
-
|
| 136 |
-
|
| 137 |
|
| 138 |
return "Successfully save data"
|
| 139 |
|
|
|
|
| 131 |
commit_url = repo.push_to_hub()
|
| 132 |
print("commit data :",commit_url)
|
| 133 |
|
| 134 |
+
url = 'https://pragnakalpdev33.pythonanywhere.com/HF_space_biobert_base_ner'
|
| 135 |
+
myobj = {'article': article,'gen_text':output,'ip_addr':ip_address,"location":location}
|
| 136 |
+
x = requests.post(url, json = myobj)
|
| 137 |
|
| 138 |
return "Successfully save data"
|
| 139 |
|