Spaces:
Sleeping
Sleeping
FIX: Remove obsolete UPLOAD_DIR creation to fix PermissionError
Browse files
main.py
CHANGED
|
@@ -8,9 +8,6 @@ import tempfile # <-- Import tempfile
|
|
| 8 |
import json
|
| 9 |
from tools import fetch_url, python_interpreter,get_dataframe_info ,calculate_correlation,create_pivot_table,run_sql_query,get_sentiment,scrape_wikipedia_summary,scrape_pdf_tables ,analyze_image_content ,geocode_address ,scrape_dynamic_site , parse_html ,get_bbc_weather ,TOOL_DEFINITIONS
|
| 10 |
import asyncio
|
| 11 |
-
# Directory where files will be saved
|
| 12 |
-
UPLOAD_DIR = Path("uploaded_files")
|
| 13 |
-
UPLOAD_DIR.mkdir(parents=True, exist_ok=True)
|
| 14 |
import re
|
| 15 |
import time
|
| 16 |
# --- Load Environment Variables ---
|
|
|
|
| 8 |
import json
|
| 9 |
from tools import fetch_url, python_interpreter,get_dataframe_info ,calculate_correlation,create_pivot_table,run_sql_query,get_sentiment,scrape_wikipedia_summary,scrape_pdf_tables ,analyze_image_content ,geocode_address ,scrape_dynamic_site , parse_html ,get_bbc_weather ,TOOL_DEFINITIONS
|
| 10 |
import asyncio
|
|
|
|
|
|
|
|
|
|
| 11 |
import re
|
| 12 |
import time
|
| 13 |
# --- Load Environment Variables ---
|