Spaces:
Sleeping
Sleeping
app.py
CHANGED
@@ -2,8 +2,8 @@ import streamlit as st
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the keyphrase extraction models
|
5 |
-
model1 = pipeline("
|
6 |
-
model2 = pipeline("
|
7 |
|
8 |
# Streamlit app
|
9 |
st.title("Keyphrase Extraction App")
|
|
|
2 |
from transformers import pipeline
|
3 |
|
4 |
# Load the keyphrase extraction models
|
5 |
+
model1 = pipeline("text2text-generation", model="ml6team/keyphrase-extraction-kbir-inspec")
|
6 |
+
model2 = pipeline("text2text-generation", model="aglazkova/bart_finetuned_keyphrase_extraction")
|
7 |
|
8 |
# Streamlit app
|
9 |
st.title("Keyphrase Extraction App")
|