Liusuthu commited on
Commit
cf61910
·
verified ·
1 Parent(s): dc88262

Update app_utils.py

Browse files
Files changed (1) hide show
  1. app_utils.py +2 -1
app_utils.py CHANGED
@@ -45,6 +45,7 @@ def text_api(text:str):
45
  return result
46
 
47
  def get_text_score(text):
 
48
  part1 = str.partition(string, r"text")
49
  want1 = part1[2]
50
  label = want1[4:6]
@@ -446,7 +447,7 @@ def video_test(video):
446
  print(prob2,label,path)
447
  print("score2=",score2)
448
 
449
- text_result=str(get_text_score(text_api(text)))
450
  print(text_result)
451
 
452
 
 
45
  return result
46
 
47
  def get_text_score(text):
48
+ string=text_api(text)
49
  part1 = str.partition(string, r"text")
50
  want1 = part1[2]
51
  label = want1[4:6]
 
447
  print(prob2,label,path)
448
  print("score2=",score2)
449
 
450
+ text_result=str(get_text_score(text))
451
  print(text_result)
452
 
453