pragnakalp commited on
Commit
ba52c7e
1 Parent(s): e9dff8c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -129,8 +129,9 @@ def generate_ocr(Method,img):
129
  Save generated details
130
  """
131
  def save_details(Method,text_output,img):
 
132
  url = 'https://pragnakalpdev33.pythonanywhere.com/HF_space_image_to_text'
133
- myobj = {'Method': Method,'text_output':text_output,'img':img}
134
 
135
  x = requests.post(url, data = myobj)
136
  # method = []
@@ -164,7 +165,7 @@ def save_details(Method,text_output,img):
164
  # df = pd.DataFrame(dict,index=None)
165
  # df.to_csv("AllDetails.csv")
166
 
167
- # hostname = get_device_ip_address()
168
  # return send_user_email(input_img,hostname,text_output,Method)
169
  return x
170
 
 
129
  Save generated details
130
  """
131
  def save_details(Method,text_output,img):
132
+ hostname = get_device_ip_address()
133
  url = 'https://pragnakalpdev33.pythonanywhere.com/HF_space_image_to_text'
134
+ myobj = {'Method': Method,'text_output':text_output,'img':img,'hostname':hostname}
135
 
136
  x = requests.post(url, data = myobj)
137
  # method = []
 
165
  # df = pd.DataFrame(dict,index=None)
166
  # df.to_csv("AllDetails.csv")
167
 
168
+
169
  # return send_user_email(input_img,hostname,text_output,Method)
170
  return x
171