techguy1423 commited on
Commit
800ec57
·
1 Parent(s): 9cd2b85

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -0
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ # Load the model
4
+ iface = gr.Interface.load("models/meta-llama/Llama-2-13b-chat-hf")
5
+
6
+ # Define a system prompt
7
+ system_prompt = "You are chatting with a helpful AI. Ask me anything."
8
+
9
+ # Launch the Gradio interface with the defined system prompt
10
+ iface.launch(system=system_prompt)