Spaces:
Paused
Paused
import spaces at first
Browse files
app.py
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification
|
| 3 |
import torch
|
|
@@ -12,7 +13,6 @@ import re
|
|
| 12 |
from pathlib import Path
|
| 13 |
from functools import lru_cache
|
| 14 |
import warnings
|
| 15 |
-
import spaces # Import the ZeroGPU helper
|
| 16 |
|
| 17 |
# Suppress FutureWarnings (e.g. about using `inputs` vs. `input_features`)
|
| 18 |
warnings.filterwarnings("ignore", category=FutureWarning)
|
|
|
|
| 1 |
+
import spaces # Import the ZeroGPU helper
|
| 2 |
import gradio as gr
|
| 3 |
from transformers import pipeline, AutoTokenizer, AutoModelForSequenceClassification
|
| 4 |
import torch
|
|
|
|
| 13 |
from pathlib import Path
|
| 14 |
from functools import lru_cache
|
| 15 |
import warnings
|
|
|
|
| 16 |
|
| 17 |
# Suppress FutureWarnings (e.g. about using `inputs` vs. `input_features`)
|
| 18 |
warnings.filterwarnings("ignore", category=FutureWarning)
|