pragnakalp commited on
Commit
35ee8bc
1 Parent(s): d4c5a4f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -115,10 +115,11 @@ def generate_emotion(article):
115
 
116
  def save_data_and_sendmail(article,output):
117
  try:
 
118
  ip_address = ''
119
  ip_address = get_device_ip_address()
120
  # location = get_location(ip_address)
121
-
122
  add_csv = [article,output,ip_address]
123
  with open(DATA_FILE, "a") as f:
124
  writer = csv.writer(f)
@@ -139,6 +140,7 @@ def save_data_and_sendmail(article,output):
139
  return "Successfully save data"
140
 
141
  except Exception as e:
 
142
  return "Error while sending mail" + str(e)
143
 
144
  input=gr.Textbox(lines=3, value=input_value, label="Input Text")
 
115
 
116
  def save_data_and_sendmail(article,output):
117
  try:
118
+ print("welcome")
119
  ip_address = ''
120
  ip_address = get_device_ip_address()
121
  # location = get_location(ip_address)
122
+ print(ip_address)
123
  add_csv = [article,output,ip_address]
124
  with open(DATA_FILE, "a") as f:
125
  writer = csv.writer(f)
 
140
  return "Successfully save data"
141
 
142
  except Exception as e:
143
+ print("error")
144
  return "Error while sending mail" + str(e)
145
 
146
  input=gr.Textbox(lines=3, value=input_value, label="Input Text")