Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -51,7 +51,7 @@ from langchain_community.utilities.wikipedia import WikipediaAPIWrapper
|
|
| 51 |
from langchain_community.tools import WikipediaQueryRun
|
| 52 |
# Note: PythonREPLTool is available but not used directly by specialized handlers
|
| 53 |
|
| 54 |
-
# --- Setup
|
| 55 |
logging.basicConfig(
|
| 56 |
level=logging.INFO,
|
| 57 |
format='%(asctime)s - %(levelname)s - %(name)s - %(message)s',
|
|
@@ -75,7 +75,7 @@ logging.getLogger(f"httpcore {task_id}_downloaded{extension}")
|
|
| 75 |
if file_size == 0 and downloaded_size == 0:
|
| 76 |
logging.error(f"Downloaded file {destination_path} is EMPTY for task {task_id}.")
|
| 77 |
return None # Treat empty file as download failure
|
| 78 |
-
return").setLevel(logging.WARNING)
|
| 79 |
logging.getLogger("openai").setLevel(logging.WARNING)
|
| 80 |
logging.getLogger("requests").setLevel(logging.WARNING)
|
| 81 |
logging.getLogger("urllib3").setLevel(logging.WARNING)
|
|
|
|
| 51 |
from langchain_community.tools import WikipediaQueryRun
|
| 52 |
# Note: PythonREPLTool is available but not used directly by specialized handlers
|
| 53 |
|
| 54 |
+
# --- Setup L ogging ---
|
| 55 |
logging.basicConfig(
|
| 56 |
level=logging.INFO,
|
| 57 |
format='%(asctime)s - %(levelname)s - %(name)s - %(message)s',
|
|
|
|
| 75 |
if file_size == 0 and downloaded_size == 0:
|
| 76 |
logging.error(f"Downloaded file {destination_path} is EMPTY for task {task_id}.")
|
| 77 |
return None # Treat empty file as download failure
|
| 78 |
+
return("").setLevel(logging.WARNING)
|
| 79 |
logging.getLogger("openai").setLevel(logging.WARNING)
|
| 80 |
logging.getLogger("requests").setLevel(logging.WARNING)
|
| 81 |
logging.getLogger("urllib3").setLevel(logging.WARNING)
|