marcela9409 commited on
Commit
c49fc60
1 Parent(s): 50d1cea

Add missing code

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -8,6 +8,9 @@ inception_net = tf.keras.applications.MobileNetV2()
8
  answer = requests.get("https://git.io/JJkYN")
9
  labels =answer.text.split("\n")
10
 
 
 
 
11
  def classify_image(inp):
12
  inp = asarray(inp.resize((224, 224)))
13
  inp = inp.reshape((-1,) + inp.shape)
 
8
  answer = requests.get("https://git.io/JJkYN")
9
  labels =answer.text.split("\n")
10
 
11
+ transcribe = pipeline("automatic-speech-recognition", model = "facebook/wav2vec2-large-xlsr-53-spanish")
12
+ classifier = pipeline("text-classification", model = "pysentimiento/robertuito-sentiment-analysis")
13
+
14
  def classify_image(inp):
15
  inp = asarray(inp.resize((224, 224)))
16
  inp = inp.reshape((-1,) + inp.shape)