Spaces:
Sleeping
Sleeping
Update src/app.py
Browse files- src/app.py +2 -3
src/app.py
CHANGED
|
@@ -1,13 +1,12 @@
|
|
| 1 |
import os
|
| 2 |
-
# Fix
|
| 3 |
-
os.environ["STREAMLIT_CONFIG_DIR"] = "/tmp/.streamlit"
|
| 4 |
|
| 5 |
import tempfile
|
| 6 |
import pyttsx3
|
| 7 |
from docx import Document
|
| 8 |
from PyPDF2 import PdfReader
|
| 9 |
import streamlit as st
|
| 10 |
-
import base64
|
| 11 |
from io import BytesIO
|
| 12 |
|
| 13 |
def text_to_speech(text, output_file):
|
|
|
|
| 1 |
import os
|
| 2 |
+
os.environ["HOME"] = "/tmp" # Fix: Redirect .streamlit to a writable path
|
|
|
|
| 3 |
|
| 4 |
import tempfile
|
| 5 |
import pyttsx3
|
| 6 |
from docx import Document
|
| 7 |
from PyPDF2 import PdfReader
|
| 8 |
import streamlit as st
|
| 9 |
+
import base64
|
| 10 |
from io import BytesIO
|
| 11 |
|
| 12 |
def text_to_speech(text, output_file):
|