Spaces:
Build error
Build error
Upload app.py with huggingface_hub
Browse files
app.py
CHANGED
|
@@ -8,10 +8,15 @@ from __future__ import annotations
|
|
| 8 |
|
| 9 |
import html
|
| 10 |
import json
|
|
|
|
| 11 |
import tempfile
|
| 12 |
import time
|
| 13 |
from pathlib import Path
|
| 14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 15 |
import gradio as gr
|
| 16 |
import numpy as np
|
| 17 |
import plotly.graph_objects as go
|
|
|
|
| 8 |
|
| 9 |
import html
|
| 10 |
import json
|
| 11 |
+
import os
|
| 12 |
import tempfile
|
| 13 |
import time
|
| 14 |
from pathlib import Path
|
| 15 |
|
| 16 |
+
# Disable torch.compile/dynamo — HF Spaces CPU has no compiler toolchain,
|
| 17 |
+
# and dynamo hangs during Hessian autograd backward passes.
|
| 18 |
+
os.environ["TORCHDYNAMO_DISABLE"] = "1"
|
| 19 |
+
|
| 20 |
import gradio as gr
|
| 21 |
import numpy as np
|
| 22 |
import plotly.graph_objects as go
|