Create app.py
Browse files
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)
|