Spaces:
Sleeping
Sleeping
SamuelMiller
commited on
Commit
•
f4622ec
1
Parent(s):
d7daaf8
Update app.py
Browse files
app.py
CHANGED
@@ -1,14 +1,14 @@
|
|
1 |
-
import torch
|
2 |
-
from transformers import pipeline
|
3 |
-
import gradio as gr
|
4 |
-
import streamlit as st
|
5 |
-
from transformers import Speech2TextProcessor, Speech2TextForConditionalGeneration
|
6 |
# from gradio.mix import Parallel, Series
|
7 |
|
8 |
|
9 |
-
desc = "Summarize your text! (audio transcription available soon)"
|
10 |
-
|
11 |
-
|
12 |
|
13 |
pipe = pipeline('sentiment-analysis')
|
14 |
text = st.text_area('enter some text!')
|
@@ -16,9 +16,11 @@ text = st.text_area('enter some text!')
|
|
16 |
if text:
|
17 |
out = pipe(text)
|
18 |
st.json(out)
|
19 |
-
|
20 |
-
|
21 |
-
|
|
|
|
|
22 |
|
23 |
#def summarize(text):
|
24 |
#summ = gr.Interface.load(qa_model)
|
|
|
1 |
+
#import torch
|
2 |
+
#from transformers import pipeline
|
3 |
+
#import gradio as gr
|
4 |
+
#import streamlit as st
|
5 |
+
# from transformers import Speech2TextProcessor, Speech2TextForConditionalGeneration
|
6 |
# from gradio.mix import Parallel, Series
|
7 |
|
8 |
|
9 |
+
#desc = "Summarize your text! (audio transcription available soon)"
|
10 |
+
import streamlit as st
|
11 |
+
from transformers import pipeline
|
12 |
|
13 |
pipe = pipeline('sentiment-analysis')
|
14 |
text = st.text_area('enter some text!')
|
|
|
16 |
if text:
|
17 |
out = pipe(text)
|
18 |
st.json(out)
|
19 |
+
|
20 |
+
|
21 |
+
#qa_model = 'huggingface/SamuelMiller/qa_squad'
|
22 |
+
#my_model = 'huggingface/SamuelMiller/lil_sumsum'
|
23 |
+
#better_model = 'huggingface/google/pegasus-large'
|
24 |
|
25 |
#def summarize(text):
|
26 |
#summ = gr.Interface.load(qa_model)
|