Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,6 +14,10 @@ from pydub import AudioSegment
|
|
14 |
import whisper # For speech-to-text
|
15 |
import ollama # For AI text evaluation
|
16 |
|
|
|
|
|
|
|
|
|
17 |
# Define the directories where your .wav, background music, and response files are located
|
18 |
wav_directory = "./files"
|
19 |
bg_directory = "./files/bg"
|
|
|
14 |
import whisper # For speech-to-text
|
15 |
import ollama # For AI text evaluation
|
16 |
|
17 |
+
|
18 |
+
# Start Ollama server in the background
|
19 |
+
os.system("ollama serve &")
|
20 |
+
|
21 |
# Define the directories where your .wav, background music, and response files are located
|
22 |
wav_directory = "./files"
|
23 |
bg_directory = "./files/bg"
|