Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -2
src/streamlit_app.py
CHANGED
@@ -11,7 +11,11 @@ UPLOAD_FOLDER = "uploads"
|
|
11 |
MEDIA_FOLDER = os.path.join(UPLOAD_FOLDER, "feedback_media")
|
12 |
FEEDBACK_FILE = os.path.join(UPLOAD_FOLDER, "feedback.csv")
|
13 |
|
14 |
-
|
|
|
|
|
|
|
|
|
15 |
|
16 |
STATES = {
|
17 |
"Telangana": ["Hyderabad", "Warangal", "Nizamabad", "Karimnagar", "Khammam"],
|
@@ -222,7 +226,7 @@ def main_app():
|
|
222 |
state=state,
|
223 |
district=district,
|
224 |
text=feedback_text.strip(),
|
225 |
-
|
226 |
audio_path=audio_path,
|
227 |
video_path=video_path
|
228 |
)
|
|
|
11 |
MEDIA_FOLDER = os.path.join(UPLOAD_FOLDER, "feedback_media")
|
12 |
FEEDBACK_FILE = os.path.join(UPLOAD_FOLDER, "feedback.csv")
|
13 |
|
14 |
+
# Create directories if they don't exist
|
15 |
+
if not os.path.exists(UPLOAD_FOLDER):
|
16 |
+
os.makedirs(UPLOAD_FOLDER)
|
17 |
+
if not os.path.exists(MEDIA_FOLDER):
|
18 |
+
os.makedirs(MEDIA_FOLDER)
|
19 |
|
20 |
STATES = {
|
21 |
"Telangana": ["Hyderabad", "Warangal", "Nizamabad", "Karimnagar", "Khammam"],
|
|
|
226 |
state=state,
|
227 |
district=district,
|
228 |
text=feedback_text.strip(),
|
229 |
+
img_path=img_path,
|
230 |
audio_path=audio_path,
|
231 |
video_path=video_path
|
232 |
)
|