3laa2 commited on
Commit
f5003f7
·
1 Parent(s): 7e7db49

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -5
app.py CHANGED
@@ -5,11 +5,10 @@ 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)
 
5
 
6
  area = st.text_area("Area",'')
7
 
8
+ if len(area) > 5:
9
  image = pipe(area).images[0]
10
+ im = Image.open(image)
11
+ st.image(im)
12
  else :
13
+ st.text_input("No","No")
14