heee / app.py
JohnBoot's picture
Update app.py
4af2005 verified
raw
history blame contribute delete
313 Bytes
import gradio as gr
from huggingface_hub import transformers
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("ibm-granite/granite-3b-code-instruct")
model = AutoModelForCausalLM.from_pretrained("ibm-granite/granite-3b-code-instruct")