AJosh commited on
Commit
ff1086c
·
verified ·
1 Parent(s): 45dd060

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ # Use a pipeline as a high-level helper
2
+ import streamlit as st
3
+ from transformers import pipeline
4
+ pipe = pipeline("text-generation", model="AJosh/Unsloth-llama3-instruct-4it")
5
+ text = st.text_area("enter some text")
6
+ if text:
7
+ out= pipe(text)
8
+ st.json(out)