yvoievid commited on
Commit
9e4b615
·
1 Parent(s): 1ace6df

[code refactor] Added some examples

Browse files
Files changed (2) hide show
  1. .gitignore +1 -0
  2. app.py +6 -1
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ .streamlit/secrets.toml
app.py CHANGED
@@ -30,7 +30,7 @@ with open(caption_examples_file_path, "r") as file:
30
  if "visibility" not in st.session_state:
31
  st.session_state.visibility = "visible"
32
  st.session_state.disabled = False
33
- st.session_state.placeholder = "What Instagram post should be about?"
34
 
35
 
36
  st.set_page_config(
@@ -47,6 +47,11 @@ text_input = st.text_input(
47
  disabled=st.session_state.disabled,
48
  placeholder=st.session_state.placeholder,
49
  )
 
 
 
 
 
50
  generate_respose = st.button("Generate")
51
  if text_input:
52
  st.write("You entered: ", text_input)
 
30
  if "visibility" not in st.session_state:
31
  st.session_state.visibility = "visible"
32
  st.session_state.disabled = False
33
+ st.session_state.placeholder = "Example: Generate post about backpack Black Mamba with volume of 22 liters"
34
 
35
 
36
  st.set_page_config(
 
47
  disabled=st.session_state.disabled,
48
  placeholder=st.session_state.placeholder,
49
  )
50
+
51
+ predefined_strings = ["Generate post about backpack Black Mamba with volume of 22 liters", "Write a post about giveaway of 3 backpacks from new collection", "Create new post about backpack Adventure for 250 dollars"]
52
+
53
+ st.write("Examples: \n\n Generate post about backpack Black Mamba with volume of 22 liters \n\n Write a post about giveaway of 3 backpacks from new collection \n\n Create new post about backpack Adventure for 250 dollars")
54
+
55
  generate_respose = st.button("Generate")
56
  if text_input:
57
  st.write("You entered: ", text_input)