oddadmix commited on
Commit
1d2d2ac
·
verified ·
1 Parent(s): a9aa842

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -38,7 +38,7 @@ def summarize(text):
38
  response = tokenizer.decode(output[0], skip_special_tokens=False)
39
  return response.split("<|im_start|>assistant")[1]
40
 
41
- input_textbox = grad.Textbox(lines=5, placeholder="اكتب النص هنا بالعربية الفصحى أو باللهجة المصرية...", label="Input Text")
42
- output_textbox = grad.Textbox(lines=5, label="النص المترجم")
43
- grad.Interface(summarize, inputs=[input_textbox], outputs=output_textbox, title="Masrawy: MSA ↔ Egyptian Translator",
44
- description="اختر اتجاه الترجمة وأدخل النص بالعربية الفصحى أو باللهجة المصرية.").launch()
 
38
  response = tokenizer.decode(output[0], skip_special_tokens=False)
39
  return response.split("<|im_start|>assistant")[1]
40
 
41
+ input_textbox = grad.Textbox(lines=5, placeholder="إكتب النص الذي تريد تلخيصه", label="Input Text")
42
+ output_textbox = grad.Textbox(lines=5, label="النص الملخص")
43
+ grad.Interface(summarize, inputs=[input_textbox], outputs=output_textbox, title="تلخيص النصوص",
44
+ description="تلخيص النصوص.").launch()