lukisko commited on
Commit
615dfe0
·
verified ·
1 Parent(s): b3ba961

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+
4
+ pipe = pipeline("text-generation", model="utter-project/EuroLLM-1.7B-Instruct")
5
+ textik = st.text_area('enter some input!')
6
+ message = [
7
+ {"role": "user", "content": textik},
8
+ ]
9
+
10
+ if textik:
11
+ out = pipe(message)
12
+ st.json(out)