richardkimsm89 commited on
Commit
dfddde4
·
verified ·
1 Parent(s): a03b7ac

Create app.py

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