lsacy commited on
Commit ·
b3ff46b
1
Parent(s): 1317801
minor update
Browse files- streamlit_app.py +1 -3
streamlit_app.py
CHANGED
|
@@ -1,12 +1,10 @@
|
|
| 1 |
import openai
|
| 2 |
-
openai.api_key = st.secrets["openai_api_key"]
|
| 3 |
-
|
| 4 |
-
|
| 5 |
import streamlit as st
|
| 6 |
from streamlit_chat import message
|
| 7 |
from transformers import pipeline
|
| 8 |
summarizer = pipeline("summarization", model="philschmid/bart-large-cnn-samsum")
|
| 9 |
sentiment_task = pipeline("sentiment-analysis", model='cardiffnlp/twitter-roberta-base-sentiment-latest', tokenizer='cardiffnlp/twitter-roberta-base-sentiment-latest')
|
|
|
|
| 10 |
|
| 11 |
from math import log
|
| 12 |
|
|
|
|
| 1 |
import openai
|
|
|
|
|
|
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
from streamlit_chat import message
|
| 4 |
from transformers import pipeline
|
| 5 |
summarizer = pipeline("summarization", model="philschmid/bart-large-cnn-samsum")
|
| 6 |
sentiment_task = pipeline("sentiment-analysis", model='cardiffnlp/twitter-roberta-base-sentiment-latest', tokenizer='cardiffnlp/twitter-roberta-base-sentiment-latest')
|
| 7 |
+
openai.api_key = st.secrets["openai_api_key"]
|
| 8 |
|
| 9 |
from math import log
|
| 10 |
|