Spaces:
Sleeping
Sleeping
Add warning filter for UserWarning related to 'json' field in firecrawl.v2.types
Browse files
app.py
CHANGED
|
@@ -2,8 +2,8 @@
|
|
| 2 |
import os
|
| 3 |
import signal
|
| 4 |
import subprocess
|
| 5 |
-
|
| 6 |
import time
|
|
|
|
| 7 |
from pathlib import Path
|
| 8 |
from typing import Any
|
| 9 |
|
|
@@ -16,6 +16,13 @@ from gradio.blocks import Blocks
|
|
| 16 |
from gradio.components import LoginButton
|
| 17 |
from gradio.events import api as gr_api
|
| 18 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
from ui import server_api
|
| 20 |
|
| 21 |
ASSETS_DIR = Path(__file__).resolve().parent / "assets"
|
|
|
|
| 2 |
import os
|
| 3 |
import signal
|
| 4 |
import subprocess
|
|
|
|
| 5 |
import time
|
| 6 |
+
import warnings
|
| 7 |
from pathlib import Path
|
| 8 |
from typing import Any
|
| 9 |
|
|
|
|
| 16 |
from gradio.components import LoginButton
|
| 17 |
from gradio.events import api as gr_api
|
| 18 |
|
| 19 |
+
warnings.filterwarnings(
|
| 20 |
+
"ignore",
|
| 21 |
+
message='Field name "json"',
|
| 22 |
+
category=UserWarning,
|
| 23 |
+
module=r"firecrawl\.v2\.types",
|
| 24 |
+
)
|
| 25 |
+
|
| 26 |
from ui import server_api
|
| 27 |
|
| 28 |
ASSETS_DIR = Path(__file__).resolve().parent / "assets"
|