Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -15,9 +15,10 @@ data = json.loads(r.text)
|
|
15 |
def predict(input):
|
16 |
|
17 |
out = pipe(input)[0]['translation_text']
|
|
|
18 |
out = [x.strip() for x in out.split(" + ")]
|
19 |
|
20 |
-
output = "<div style='direction: rtl; text-align: right; font-size: 20px; font-family: sans-serif; line-height: 1.5'>"
|
21 |
for o in out:
|
22 |
oo = [x.strip() for x in o.split("+")]
|
23 |
newout = []
|
|
|
15 |
def predict(input):
|
16 |
|
17 |
out = pipe(input)[0]['translation_text']
|
18 |
+
raw = out
|
19 |
out = [x.strip() for x in out.split(" + ")]
|
20 |
|
21 |
+
output = f"{raw}<br><br><div style='direction: rtl; text-align: right; font-size: 20px; font-family: sans-serif; line-height: 1.5'>"
|
22 |
for o in out:
|
23 |
oo = [x.strip() for x in o.split("+")]
|
24 |
newout = []
|