Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,15 +20,17 @@ st.markdown("***Idea is to build a model which will take query as inputs and gen
|
|
20 |
image = Image.open('top.png')
|
21 |
st.image(image)
|
22 |
|
23 |
-
st.sidebar.write("# Parameter Selection")
|
24 |
-
maxtags_sidebar = st.sidebar.slider('Number of query allowed?', 1, 10, 1, key='ehikwegrjifbwreuk')
|
25 |
-
user_query = st_tags(
|
26 |
-
label='# Enter Query:',
|
27 |
-
text='Press enter to add more',
|
28 |
-
value=['Mother'],
|
29 |
-
suggestions=['
|
30 |
-
maxtags=maxtags_sidebar,
|
31 |
-
key="aljnf")
|
|
|
|
|
32 |
|
33 |
# Add selectbox in streamlit
|
34 |
option1 = st.sidebar.selectbox(
|
@@ -97,5 +99,5 @@ def search(query):
|
|
97 |
|
98 |
st.write("## Results:")
|
99 |
if st.button('Generate Sentence'):
|
100 |
-
out = search(query =
|
101 |
#st.success(out)
|
|
|
20 |
image = Image.open('top.png')
|
21 |
st.image(image)
|
22 |
|
23 |
+
#st.sidebar.write("# Parameter Selection")
|
24 |
+
#maxtags_sidebar = st.sidebar.slider('Number of query allowed?', 1, 10, 1, key='ehikwegrjifbwreuk')
|
25 |
+
#user_query = st_tags(
|
26 |
+
# label='# Enter Query:',
|
27 |
+
# text='Press enter to add more',
|
28 |
+
# value=['Mother'],
|
29 |
+
# suggestions=['gift', 'nike', 'wool'],
|
30 |
+
# maxtags=maxtags_sidebar,
|
31 |
+
# key="aljnf")
|
32 |
+
|
33 |
+
user_query = st.text_input("Enter a query for the generated text:")
|
34 |
|
35 |
# Add selectbox in streamlit
|
36 |
option1 = st.sidebar.selectbox(
|
|
|
99 |
|
100 |
st.write("## Results:")
|
101 |
if st.button('Generate Sentence'):
|
102 |
+
out = search(query = user_query)
|
103 |
#st.success(out)
|