pragnakalp commited on
Commit
365d35c
1 Parent(s): be6f283

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -92,7 +92,9 @@ def generate_emotion(article):
92
  else:
93
  Entity_Types.append(j)
94
  k = 0
95
- result = {'Entities Found':Entities_Found, 'Entity Types':Entity_Types}
 
 
96
  return pd.DataFrame(result)
97
 
98
 
@@ -106,6 +108,7 @@ def save_data_and_sendmail(Inputdata,output):
106
  # x = requests.post(url, json = myobj)
107
 
108
  ip = hostname.get("ip_addr","")
 
109
  add_csv = [Inputdata,Generate_text,IP]
110
  with open(DATA_FILE, "a") as f:
111
  writer = csv.writer(f)
 
92
  else:
93
  Entity_Types.append(j)
94
  k = 0
95
+ result = {'Entities Found':Entities_Found, 'Entity Types':Entity_Types}
96
+ Entities_Found.clear()
97
+ Entity_Types.clear()
98
  return pd.DataFrame(result)
99
 
100
 
 
108
  # x = requests.post(url, json = myobj)
109
 
110
  ip = hostname.get("ip_addr","")
111
+ print(ip)
112
  add_csv = [Inputdata,Generate_text,IP]
113
  with open(DATA_FILE, "a") as f:
114
  writer = csv.writer(f)