malper commited on
Commit
561e37f
1 Parent(s): 534ef8c
Files changed (2) hide show
  1. app.py +13 -0
  2. requirements.txt +2 -0
app.py ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ from transformers import pipeline
3
+
4
+ with st.spinner('Loading TaatikNet framework...'):
5
+ pipe = pipeline("text2text-generation", model='malper/taatiknet', device_map="auto")
6
+
7
+ st.success('Loaded!')
8
+
9
+ text = st.text_area('Enter text and press ctrl/command+enter:')
10
+
11
+ if text:
12
+ output = pipe(text)
13
+ st.write(output[0]['generated_text'])
requirements.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ torch
2
+ transformers