Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,6 +12,11 @@ from datetime import datetime
|
|
| 12 |
import torch
|
| 13 |
from torchvision.models.mobilenetv2 import MobileNetV2
|
| 14 |
from gtts import gTTS
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
# ========== TTS ENGINE ==========
|
| 16 |
|
| 17 |
def speak_streamlit(text):
|
|
|
|
| 12 |
import torch
|
| 13 |
from torchvision.models.mobilenetv2 import MobileNetV2
|
| 14 |
from gtts import gTTS
|
| 15 |
+
import os
|
| 16 |
+
|
| 17 |
+
# Create history folder if it doesn't exist
|
| 18 |
+
os.makedirs("history", exist_ok=True)
|
| 19 |
+
|
| 20 |
# ========== TTS ENGINE ==========
|
| 21 |
|
| 22 |
def speak_streamlit(text):
|