Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,6 +5,7 @@ import gradio as gr
|
|
5 |
#import tensorflow as tf masih error
|
6 |
import torch #ganti ke pt
|
7 |
|
|
|
8 |
from transformers import MT5Tokenizer, MT5ForConditionalGeneration
|
9 |
|
10 |
|
@@ -47,7 +48,7 @@ contoh = [["Dota 2 adalah sebuah permainan arena pertarungan daring multipemain,
|
|
47 |
title = "Text Sumarization id2id"
|
48 |
|
49 |
#deskripsi
|
50 |
-
description = "Demo for Text Sumarization id2id. Models are
|
51 |
|
52 |
#footer
|
53 |
article = "<p style='text-align: center'><a href='https://github.com/sultanbst123/Text_summarization-id2id' target='_blank'><u>Untuk penjelasan lihat di repo ku</u> π</a></p>"
|
|
|
5 |
#import tensorflow as tf masih error
|
6 |
import torch #ganti ke pt
|
7 |
|
8 |
+
import sentencepiece
|
9 |
from transformers import MT5Tokenizer, MT5ForConditionalGeneration
|
10 |
|
11 |
|
|
|
48 |
title = "Text Sumarization id2id"
|
49 |
|
50 |
#deskripsi
|
51 |
+
description = "Demo for Text Sumarization id2id. Models are MT5(45 languages)"
|
52 |
|
53 |
#footer
|
54 |
article = "<p style='text-align: center'><a href='https://github.com/sultanbst123/Text_summarization-id2id' target='_blank'><u>Untuk penjelasan lihat di repo ku</u> π</a></p>"
|