Update app.py
Browse files
app.py
CHANGED
|
@@ -1,11 +1,10 @@
|
|
| 1 |
-
pip install pyttsx3 pyaudio
|
| 2 |
-
pip install pipwin
|
| 3 |
-
pipwin install pyaudio
|
| 4 |
|
| 5 |
import gradio as gr
|
| 6 |
from huggingface_hub import InferenceClient
|
| 7 |
import pyttsx3 # For text-to-speech
|
| 8 |
import speech_recognition as sr # For speech-to-text
|
|
|
|
|
|
|
| 9 |
|
| 10 |
# ✅ Connect to Hugging Face Zephyr-7B API
|
| 11 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
|
| 2 |
import gradio as gr
|
| 3 |
from huggingface_hub import InferenceClient
|
| 4 |
import pyttsx3 # For text-to-speech
|
| 5 |
import speech_recognition as sr # For speech-to-text
|
| 6 |
+
import os
|
| 7 |
+
os.system("apt-get update && apt-get install -y portaudio19-dev && pip install pyaudio")
|
| 8 |
|
| 9 |
# ✅ Connect to Hugging Face Zephyr-7B API
|
| 10 |
client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
|