Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,9 @@
|
|
|
|
1 |
import torch
|
2 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
3 |
from peft import PeftModel
|
4 |
import gradio as gr
|
5 |
from threading import Thread
|
6 |
-
import spaces
|
7 |
import os
|
8 |
|
9 |
# 从环境变量中获取 Hugging Face 模型信息
|
|
|
1 |
+
import spaces
|
2 |
import torch
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
|
4 |
from peft import PeftModel
|
5 |
import gradio as gr
|
6 |
from threading import Thread
|
|
|
7 |
import os
|
8 |
|
9 |
# 从环境变量中获取 Hugging Face 模型信息
|