Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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="
|
| 42 |
-
output_textbox = grad.Textbox(lines=5, label="النص
|
| 43 |
-
grad.Interface(summarize, inputs=[input_textbox], outputs=output_textbox, title="
|
| 44 |
-
description="
|
|
|
|
| 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()
|