Update app.py
Browse files
app.py
CHANGED
@@ -2,8 +2,8 @@ import gradio as gr
|
|
2 |
import torch
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
4 |
|
5 |
-
model = AutoModelForCausalLM.from_pretrained("checkpoint",trust_remote_code=True)
|
6 |
-
tokenizer = AutoTokenizer.from_pretrained("checkpoint", trust_remote_code=True)
|
7 |
tokenizer.pad_token = tokenizer.eos_token
|
8 |
|
9 |
def inference(prompt, count):
|
|
|
2 |
import torch
|
3 |
from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
4 |
|
5 |
+
model = AutoModelForCausalLM.from_pretrained("checkpoint/",trust_remote_code=True)
|
6 |
+
tokenizer = AutoTokenizer.from_pretrained("checkpoint/", trust_remote_code=True)
|
7 |
tokenizer.pad_token = tokenizer.eos_token
|
8 |
|
9 |
def inference(prompt, count):
|