3laa2 commited on
Commit
2691f07
·
1 Parent(s): e9eda80

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -1,14 +1,15 @@
1
  import streamlit as st
 
2
 
3
- st.write("""
4
- # New App
5
-
6
- Trying
7
-
8
- """)
9
 
10
  area = st.text_area("Area",'')
11
 
12
- image = pipe(area).images[0]
 
 
 
 
 
13
 
14
- st.image(cv.imread(image))
 
1
  import streamlit as st
2
+ from PIL import Image
3
 
4
+ st.title(" New App")
 
 
 
 
 
5
 
6
  area = st.text_area("Area",'')
7
 
8
+ if area:
9
+ image = pipe(area).images[0]
10
+ else :
11
+ print("No")
12
+
13
+ im = Image.open(image)
14
 
15
+ st.image(im)