Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|