Spaces:
Running
on
T4
Running
on
T4
Added warning suppression
Browse files
app.py
CHANGED
|
@@ -26,6 +26,9 @@ import shlex
|
|
| 26 |
import shutil
|
| 27 |
os.environ["GRADIO_TEMP_DIR"] = os.path.join(os.getcwd(), "tmp")
|
| 28 |
cwd = os.getcwd()
|
|
|
|
|
|
|
|
|
|
| 29 |
|
| 30 |
# Installing dependencies not in requirements.txt
|
| 31 |
subprocess.run(
|
|
|
|
| 26 |
import shutil
|
| 27 |
os.environ["GRADIO_TEMP_DIR"] = os.path.join(os.getcwd(), "tmp")
|
| 28 |
cwd = os.getcwd()
|
| 29 |
+
# Suppress warnings to avoid overflowing the log.
|
| 30 |
+
import warnings
|
| 31 |
+
warnings.filterwarnings("ignore")
|
| 32 |
|
| 33 |
# Installing dependencies not in requirements.txt
|
| 34 |
subprocess.run(
|