Update app.py
This commit is contained in:
parent
06a42ee132
commit
7e2a3f2da9
1
app.py
1
app.py
|
@ -17,6 +17,7 @@ base_model = "decapoda-research/llama-7b-hf"
|
||||||
adapter_model = "project-baize/baize-lora-7B"
|
adapter_model = "project-baize/baize-lora-7B"
|
||||||
tokenizer,model,device = load_tokenizer_and_model(base_model,adapter_model)
|
tokenizer,model,device = load_tokenizer_and_model(base_model,adapter_model)
|
||||||
|
|
||||||
|
global total_cont
|
||||||
total_cont = 0
|
total_cont = 0
|
||||||
def predict(text,
|
def predict(text,
|
||||||
chatbot,
|
chatbot,
|
||||||
|
|
Loading…
Reference in New Issue