Spaces:
Sleeping
Sleeping
Updating
Browse files
app.py
CHANGED
|
@@ -9,14 +9,13 @@ from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
|
|
| 9 |
import datetime # Logging
|
| 10 |
import json # Chat history
|
| 11 |
from textblob import TextBlob # Sentiment analysis
|
| 12 |
-
from
|
| 13 |
import speech_recognition as sr # Voice recognition
|
| 14 |
from streamlit_webrtc import webrtc_streamer, WebRtcMode, RTCConfiguration # Video calling
|
| 15 |
from reportlab.lib.pagesizes import letter
|
| 16 |
from reportlab.pdfgen import canvas
|
| 17 |
from PyPDF2 import PdfReader
|
| 18 |
import docx
|
| 19 |
-
|
| 20 |
# Load dataset
|
| 21 |
@st.cache_data
|
| 22 |
def load_dataset():
|
|
|
|
| 9 |
import datetime # Logging
|
| 10 |
import json # Chat history
|
| 11 |
from textblob import TextBlob # Sentiment analysis
|
| 12 |
+
from deep_translator import GoogleTranslator # Language translation
|
| 13 |
import speech_recognition as sr # Voice recognition
|
| 14 |
from streamlit_webrtc import webrtc_streamer, WebRtcMode, RTCConfiguration # Video calling
|
| 15 |
from reportlab.lib.pagesizes import letter
|
| 16 |
from reportlab.pdfgen import canvas
|
| 17 |
from PyPDF2 import PdfReader
|
| 18 |
import docx
|
|
|
|
| 19 |
# Load dataset
|
| 20 |
@st.cache_data
|
| 21 |
def load_dataset():
|