Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -2,7 +2,7 @@ import streamlit as st
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
def summarize_text(text):
|
5 |
-
unmasker = pipeline(
|
6 |
text_input = unmasker(text)
|
7 |
return text_input
|
8 |
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
def summarize_text(text):
|
5 |
+
unmasker = pipeline("text-classification", model = "roberta-large-mnli")
|
6 |
text_input = unmasker(text)
|
7 |
return text_input
|
8 |
|