Shiraztanvir123 commited on
Commit
8ebabb0
·
verified ·
1 Parent(s): 120c2d3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -1,4 +1,11 @@
1
  import streamlit as st
2
 
3
- x = st.slider('Select a value')
4
- st.write(x, 'squared is', x * x)
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
 
3
+ from transformers import pipeline
4
+
5
+ pipe = pipeline("text-generation")
6
+
7
+ text=st.text_area('Enter Some Text!')
8
+
9
+ id text:
10
+ out = pipe(text)
11
+ st.json(out)