AiCoderv2 commited on
Commit
d6d07f7
·
verified ·
1 Parent(s): a49f772

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
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"