Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,8 @@ def inference(audio, prompt, model, temperature, latest):
|
|
| 51 |
print("The audio is:", audio)
|
| 52 |
transcript = transcribe(audio)
|
| 53 |
|
| 54 |
-
|
|
|
|
| 55 |
|
| 56 |
text = prompt + transcript + "\nPrediction: "
|
| 57 |
|
|
|
|
| 51 |
print("The audio is:", audio)
|
| 52 |
transcript = transcribe(audio)
|
| 53 |
|
| 54 |
+
if transcript in not None:
|
| 55 |
+
latest.append(transcript)
|
| 56 |
|
| 57 |
text = prompt + transcript + "\nPrediction: "
|
| 58 |
|