Sambit27 commited on
Commit
c809c60
·
verified ·
1 Parent(s): daa35b6

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import streamlit as st
3
+ from transformers import pipeline
4
+
5
+ classifier = pipeline("sentiment-analysis")
6
+ result = classifier("This world is a beautiful place")
7
+
8
+ # App config
9
+ st.set_page_config(page_title="Playground",page_icon= "🌍")
10
+ st.title("Try out")
11
+
12
+ st.write(result)