ldhldh commited on
Commit
28dfcc1
β€’
1 Parent(s): a4ddb2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -30,7 +30,7 @@ routes.get_types = get_types
30
 
31
  # App code
32
  def mbti(x):
33
- t = translator.translate(x, src='ko', dest='en')
34
  str_trans = re.sub('[-=+,#/\?:^.@*\"β€»~ㆍ!γ€β€˜|\(\)\[\]`\'…》\”\β€œ\’·]', '', t)
35
  result = gradio_client.predict(
36
  str_trans, # str representing input in 'User input' Textbox component
 
30
 
31
  # App code
32
  def mbti(x):
33
+ t = translator.translate(x, src='ko', dest='en').text
34
  str_trans = re.sub('[-=+,#/\?:^.@*\"β€»~ㆍ!γ€β€˜|\(\)\[\]`\'…》\”\β€œ\’·]', '', t)
35
  result = gradio_client.predict(
36
  str_trans, # str representing input in 'User input' Textbox component