File size: 299 Bytes
800ec57
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
import gradio as gr

# Load the model
iface = gr.Interface.load("models/meta-llama/Llama-2-13b-chat-hf")

# Define a system prompt
system_prompt = "You are chatting with a helpful AI. Ask me anything."

# Launch the Gradio interface with the defined system prompt
iface.launch(system=system_prompt)