Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ def Prediction(text,audio):
|
|
| 11 |
audio = sr.AudioData(audio_data, sample_rate=sample_rate,sample_width=2)
|
| 12 |
try:
|
| 13 |
text = r.recognize_google(audio, language='ur')
|
| 14 |
-
return
|
| 15 |
except:
|
| 16 |
return "sorry could not recognize what you said"
|
| 17 |
else:
|
|
|
|
| 11 |
audio = sr.AudioData(audio_data, sample_rate=sample_rate,sample_width=2)
|
| 12 |
try:
|
| 13 |
text = r.recognize_google(audio, language='ur')
|
| 14 |
+
return toxic_content_classifier.predict(text)
|
| 15 |
except:
|
| 16 |
return "sorry could not recognize what you said"
|
| 17 |
else:
|