forum1 commited on
Commit
162a346
1 Parent(s): e60da57

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -2
app.py CHANGED
@@ -1,3 +1,8 @@
1
- import gradio as gr
2
 
3
- gr.load("models/meta-llama/Meta-Llama-3-8B").launch()
 
 
 
 
 
 
1
+ from transformers import pipeline
2
 
3
+ messages = [
4
+ {"role": "user", "content": "Who are you?"},
5
+ ]
6
+
7
+ pipe = pipeline("text-generation", model="meta-llama/Meta-Llama-3.1-405B-Instruct")
8
+ print(pipe(messages))