merve HF Staff commited on
Commit
7f4f78a
·
1 Parent(s): cf2a3ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -25,7 +25,7 @@ API_TOKEN = os.getenv("HF_TOKEN")
25
  def get_parsed_address(input_img):
26
 
27
  address_full_text = get_text(input_img)
28
- return openai_response(address_full_text)
29
 
30
 
31
  def preprocess_img(inp_image):
@@ -65,7 +65,7 @@ def write_db(data_dict):
65
 
66
  def text_dict(input):
67
  print(input)
68
- eval_result = input
69
  #eval_result = ast.literal_eval(input)
70
  write_db(eval_result)
71
 
 
25
  def get_parsed_address(input_img):
26
 
27
  address_full_text = get_text(input_img)
28
+ return query(address_full_text)
29
 
30
 
31
  def preprocess_img(inp_image):
 
65
 
66
  def text_dict(input):
67
  print(input)
68
+ eval_result = eval(input)
69
  #eval_result = ast.literal_eval(input)
70
  write_db(eval_result)
71