Update app.py
Browse files
app.py
CHANGED
|
@@ -1,17 +1,11 @@
|
|
| 1 |
import os
|
| 2 |
import time
|
| 3 |
from typing import List, Tuple, Optional
|
| 4 |
-
from gtts import gTTS
|
| 5 |
-
import pyttsx3
|
| 6 |
-
from pydub import AudioSegment
|
| 7 |
import google.generativeai as genai
|
| 8 |
import gradio as gr
|
| 9 |
from PIL import Image
|
| 10 |
import tempfile
|
| 11 |
import os
|
| 12 |
-
os.system("apt-get update && apt-get install -y espeak ffmpeg")
|
| 13 |
-
|
| 14 |
-
#print("google-generativeai:", genai.__version__)
|
| 15 |
|
| 16 |
GOOGLE_API_KEY = os.environ.get("GEMINI_API_KEY")
|
| 17 |
|
|
|
|
| 1 |
import os
|
| 2 |
import time
|
| 3 |
from typing import List, Tuple, Optional
|
|
|
|
|
|
|
|
|
|
| 4 |
import google.generativeai as genai
|
| 5 |
import gradio as gr
|
| 6 |
from PIL import Image
|
| 7 |
import tempfile
|
| 8 |
import os
|
|
|
|
|
|
|
|
|
|
| 9 |
|
| 10 |
GOOGLE_API_KEY = os.environ.get("GEMINI_API_KEY")
|
| 11 |
|