WinterGYC
commited on
Commit
•
227a9e8
1
Parent(s):
3ce93d7
Fix import
Browse files
app.py
CHANGED
@@ -1,6 +1,8 @@
|
|
1 |
-
from transformers import
|
|
|
2 |
import gradio as gr
|
3 |
import mdtex2html
|
|
|
4 |
|
5 |
model = AutoModelForCausalLM.from_pretrained(
|
6 |
"baichuan-inc/Baichuan-13B-Chat",
|
|
|
1 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
2 |
+
from transformers.generation.utils import GenerationConfig
|
3 |
import gradio as gr
|
4 |
import mdtex2html
|
5 |
+
import torch
|
6 |
|
7 |
model = AutoModelForCausalLM.from_pretrained(
|
8 |
"baichuan-inc/Baichuan-13B-Chat",
|