Spaces:
Runtime error
Runtime error
Commit ·
800ec57
1
Parent(s): 9cd2b85
Create app.py
Browse files
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)
|