Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -29,13 +29,7 @@ def get_types(cls_set: List[Type], component: str):
|
|
29 |
return docset, types
|
30 |
routes.get_types = get_types
|
31 |
|
32 |
-
|
33 |
-
output = out[len(prom)-2:]
|
34 |
-
outout = re.sub("νν", "γ
γ
", output)
|
35 |
-
output = output.split('<|endoftext|>')[0]
|
36 |
-
output = output.split('\n')[0]
|
37 |
-
output = re.sub('[=+#/\:@*\"β»γγβ|\\\<\>\(\)\[\]`\'β¦γ\β\β\βΒ·]', ' ', output)
|
38 |
-
return output
|
39 |
# App code
|
40 |
def mbti(x):
|
41 |
t = loop.run_until_complete(translator.translate(x, src='ko', dest='en'))
|
@@ -59,9 +53,12 @@ def chat(x):
|
|
59 |
1.2, # float, representing input in 'repetition_penalty' Slider component
|
60 |
fn_index=0
|
61 |
)
|
62 |
-
|
63 |
-
|
64 |
-
|
|
|
|
|
|
|
65 |
|
66 |
def yn(x):
|
67 |
result = gradio_client.predict(
|
|
|
29 |
return docset, types
|
30 |
routes.get_types = get_types
|
31 |
|
32 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
# App code
|
34 |
def mbti(x):
|
35 |
t = loop.run_until_complete(translator.translate(x, src='ko', dest='en'))
|
|
|
53 |
1.2, # float, representing input in 'repetition_penalty' Slider component
|
54 |
fn_index=0
|
55 |
)
|
56 |
+
output = result[len(x)-2:]
|
57 |
+
outout = re.sub("νν", "γ
γ
", output)
|
58 |
+
output = output.split('<|endoftext|>')[0]
|
59 |
+
output = output.split('\n')[0]
|
60 |
+
output = re.sub('[=+#/\:@*\"β»γγβ|\\\<\>\(\)\[\]`\'β¦γ\β\β\βΒ·]', ' ', output)
|
61 |
+
return output
|
62 |
|
63 |
def yn(x):
|
64 |
result = gradio_client.predict(
|