Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -32,7 +32,7 @@ routes.get_types = get_types
|
|
32 |
# App code
|
33 |
def mbti(x):
|
34 |
t = loop.run_until_complete(translator.translate(x, src='ko', dest='en'))
|
35 |
-
str_trans = re.sub('[-=+,#/\?:^.@*\"β»~γ!γβ|\(\)\[\]`\'β¦γ\β\β\βΒ·]', '', t
|
36 |
result = gradio_client.predict(
|
37 |
str_trans, # str representing input in 'User input' Textbox component
|
38 |
fn_index=2
|
|
|
32 |
# App code
|
33 |
def mbti(x):
|
34 |
t = loop.run_until_complete(translator.translate(x, src='ko', dest='en'))
|
35 |
+
str_trans = re.sub('[-=+,#/\?:^.@*\"β»~γ!γβ|\(\)\[\]`\'β¦γ\β\β\βΒ·]', '', t.text)
|
36 |
result = gradio_client.predict(
|
37 |
str_trans, # str representing input in 'User input' Textbox component
|
38 |
fn_index=2
|