guymorlan commited on
Commit
2bced45
·
1 Parent(s): 6db2364

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
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 = []