Update app.py
Browse files
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 |
-
|
| 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 |
|
|
|
|
|
|
|
|
|