Spaces:
Runtime error
Runtime error
Commit
·
4e2fd87
1
Parent(s):
ee75453
Update app.py
Browse files
app.py
CHANGED
@@ -10,7 +10,7 @@ model_checkpoint = "Modfiededition/t5-base-fine-tuned-on-jfleg"
|
|
10 |
|
11 |
@st.cache(allow_output_mutation=True, suppress_st_warning=True)
|
12 |
def load_model():
|
13 |
-
return pipeline("text2text-
|
14 |
model = load_model()
|
15 |
|
16 |
|
|
|
10 |
|
11 |
@st.cache(allow_output_mutation=True, suppress_st_warning=True)
|
12 |
def load_model():
|
13 |
+
return pipeline("text2text-generation", model=model_checkpoint)
|
14 |
model = load_model()
|
15 |
|
16 |
|