Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,10 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import AutoTokenizer
|
3 |
from peft import PeftModel
|
4 |
import torch
|
5 |
import os
|
6 |
-
|
7 |
|
8 |
# 获取 Hugging Face 访问令牌
|
9 |
hf_token = os.getenv("HF_API_TOKEN")
|
|
|
1 |
+
import spaces
|
2 |
import gradio as gr
|
3 |
from transformers import AutoTokenizer
|
4 |
from peft import PeftModel
|
5 |
import torch
|
6 |
import os
|
7 |
+
|
8 |
|
9 |
# 获取 Hugging Face 访问令牌
|
10 |
hf_token = os.getenv("HF_API_TOKEN")
|