WinterGYC commited on
Commit
227a9e8
1 Parent(s): 3ce93d7

Fix import

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,6 +1,8 @@
1
- from transformers import AutoModel, AutoTokenizer
 
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",