Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,10 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 3 |
import torch
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
# Download and load the model
|
| 6 |
model_name = "baidu/ERNIE-4.5-21B-A3B-Thinking"
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 3 |
import torch
|
| 4 |
+
import warnings
|
| 5 |
+
|
| 6 |
+
# Suppress the specific warning
|
| 7 |
+
warnings.filterwarnings("ignore", category=FutureWarning, module="huggingface_hub")
|
| 8 |
|
| 9 |
# Download and load the model
|
| 10 |
model_name = "baidu/ERNIE-4.5-21B-A3B-Thinking"
|