Kvikontent commited on
Commit
b7bcee1
·
1 Parent(s): 384b872

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -8
app.py CHANGED
@@ -7,17 +7,9 @@ import time
7
  st.title('CreativeAI')
8
  st.write('This is AI image generation based on KVIImager 2.0 API by KVI Kontent')
9
 
10
- # Pre-defined prompts
11
- example_prompts = ["A cat sitting on a keyboard", "A futuristic cityscape", "Magical forest at night"]
12
-
13
- # Select box for choosing examples
14
- selected_prompt = st.selectbox("Select an example prompt", example_prompts)
15
-
16
  # Input field for custom prompt
17
  custom_prompt = st.text_input("Enter your own prompt")
18
 
19
- prompt = selected_prompt if not custom_prompt else custom_prompt
20
-
21
  if st.button('Generate Image'):
22
  if prompt:
23
  with st.spinner('Generating your image...'):
 
7
  st.title('CreativeAI')
8
  st.write('This is AI image generation based on KVIImager 2.0 API by KVI Kontent')
9
 
 
 
 
 
 
 
10
  # Input field for custom prompt
11
  custom_prompt = st.text_input("Enter your own prompt")
12
 
 
 
13
  if st.button('Generate Image'):
14
  if prompt:
15
  with st.spinner('Generating your image...'):