renatotn7 commited on
Commit
afd9eb4
1 Parent(s): f33c02f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,5 +1,11 @@
1
  import streamlit as st
2
  from transformers import pipeline
 
 
 
 
 
 
3
  pipe = pipeline('sentiment-analysis')
4
  pipe2 = pipeline(task="image-bestify", model="beihai/GFPGAN-V1.3-whole-image")
5
  text = st.text_area('entre com algum texto')
@@ -7,4 +13,5 @@ st.title("Hot Dog? Or Not? ")
7
  file_name = st.file_uploader("Upload a hot dog candidate image")
8
  if text:
9
  out=pipe(text)
10
- st.json(out)
 
 
1
  import streamlit as st
2
  from transformers import pipeline
3
+ from transformers import AutoProcessor, AutoModelForSpeechSeq2Seq
4
+ processor = AutoProcessor.from_pretrained("openai/whisper-large")
5
+ model = AutoModelForSpeechSeq2Seq.from_pretrained("openai/whisper-large")
6
+
7
+
8
+
9
  pipe = pipeline('sentiment-analysis')
10
  pipe2 = pipeline(task="image-bestify", model="beihai/GFPGAN-V1.3-whole-image")
11
  text = st.text_area('entre com algum texto')
 
13
  file_name = st.file_uploader("Upload a hot dog candidate image")
14
  if text:
15
  out=pipe(text)
16
+ st.json(out)
17
+