Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,9 +6,7 @@ from transformers import pipeline
|
|
6 |
|
7 |
text_summary = pipeline("summarization", model="dicta-il/dictalm2.0", torch_dtype=torch.bfloat16)
|
8 |
|
9 |
-
|
10 |
-
text_summary = pipeline("summarization", model=model_path,
|
11 |
-
torch_dtype=torch.bfloat16)
|
12 |
|
13 |
|
14 |
|
@@ -30,6 +28,6 @@ gr.close_all()
|
|
30 |
demo = gr.Interface(fn=summary,
|
31 |
inputs=[gr.Textbox(label="Input text to summarize",lines=6)],
|
32 |
outputs=[gr.Textbox(label="Summarized text",lines=4)],
|
33 |
-
title="
|
34 |
description="THIS APPLICATION WILL BE USED TO SUMMARIZE THE TEXT")
|
35 |
demo.launch()
|
|
|
6 |
|
7 |
text_summary = pipeline("summarization", model="dicta-il/dictalm2.0", torch_dtype=torch.bfloat16)
|
8 |
|
9 |
+
|
|
|
|
|
10 |
|
11 |
|
12 |
|
|
|
28 |
demo = gr.Interface(fn=summary,
|
29 |
inputs=[gr.Textbox(label="Input text to summarize",lines=6)],
|
30 |
outputs=[gr.Textbox(label="Summarized text",lines=4)],
|
31 |
+
title="Hebrew Text Summarizer",
|
32 |
description="THIS APPLICATION WILL BE USED TO SUMMARIZE THE TEXT")
|
33 |
demo.launch()
|