Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
import cv2 as cv
|
3 |
+
|
4 |
+
st.write("""
|
5 |
+
# New App
|
6 |
+
|
7 |
+
Trying
|
8 |
+
|
9 |
+
""")
|
10 |
+
|
11 |
+
Prompt = st.text_input("prompt","")
|
12 |
+
|
13 |
+
st.write(f"'Description' == {Prompt}")
|
14 |
+
|
15 |
+
|
16 |
+
|
17 |
+
area = st.text_area("Area",'')
|
18 |
+
|
19 |
+
image = pipe(area).images[0]
|
20 |
+
|
21 |
+
st.image(cv.imread(image))
|