Spaces:
Runtime error
Runtime error
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from transformers import pipeline
|
3 |
+
|
4 |
+
|
5 |
+
pipe = pipeline("text-generation", model="Alok64/Llama-2-7b-chat-finetune")
|
6 |
+
text = st.text_area('enter')
|
7 |
+
|
8 |
+
if text:
|
9 |
+
out = pipe(text)
|
10 |
+
st.json(out)
|