Spaces:
Running
Running
Commit
•
e6dacc6
1
Parent(s):
89475a9
Update app.py
Browse files
app.py
CHANGED
@@ -101,6 +101,7 @@ def generate_emotion(article):
|
|
101 |
|
102 |
def save_data_and_sendmail(article,output):
|
103 |
try:
|
|
|
104 |
hostname = {}
|
105 |
hostname = get_device_ip_address()
|
106 |
# url = 'https://pragnakalpdev35.pythonanywhere.com/HF_space_que_gen'
|
@@ -110,7 +111,7 @@ def save_data_and_sendmail(article,output):
|
|
110 |
inputdata = article
|
111 |
ip = hostname.get("ip_addr","")
|
112 |
print(ip)
|
113 |
-
add_csv = [inputdata,
|
114 |
with open(DATA_FILE, "a") as f:
|
115 |
writer = csv.writer(f)
|
116 |
# write the data
|
|
|
101 |
|
102 |
def save_data_and_sendmail(article,output):
|
103 |
try:
|
104 |
+
print(">>"*30)
|
105 |
hostname = {}
|
106 |
hostname = get_device_ip_address()
|
107 |
# url = 'https://pragnakalpdev35.pythonanywhere.com/HF_space_que_gen'
|
|
|
111 |
inputdata = article
|
112 |
ip = hostname.get("ip_addr","")
|
113 |
print(ip)
|
114 |
+
add_csv = [inputdata,output,ip]
|
115 |
with open(DATA_FILE, "a") as f:
|
116 |
writer = csv.writer(f)
|
117 |
# write the data
|