Spaces:
Runtime error
Runtime error
File size: 397 Bytes
6e5a0f0 695e908 6e5a0f0 36b6695 aebfc76 36b6695 695e908 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
import gradio as gr
def greet(name):
return str(int(name)+10)
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
iface.launch()
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-2-13b-chat-hf")
model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-13b-chat-hf")
print('') |