Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -134,7 +134,7 @@ def main():
|
|
| 134 |
unsafe_allow_html=True,
|
| 135 |
)
|
| 136 |
if choose == 'Upload':
|
| 137 |
-
st.info("Upload your own
|
| 138 |
with st.form(key='generate_form'):
|
| 139 |
upload_file = st.file_uploader("Upload image", type=["png", "jpg", "jpeg"])
|
| 140 |
prompt = st.text_input(label="Prompt", placeholder='Type your instruction')
|
|
@@ -172,12 +172,6 @@ def main():
|
|
| 172 |
col12.image(output_image, channels='RGB', width=None, clamp=False, caption='Generated image')
|
| 173 |
|
| 174 |
elif choose == 'Canvas':
|
| 175 |
-
# st.markdown('''
|
| 176 |
-
# ###### Step 1a. Draw your image with canvas
|
| 177 |
-
# ###### Step 1b. You also can upload image directly by select Upload in side bar
|
| 178 |
-
# ###### Step 2. Input prompt to instruct model (You can also change some config with advanced option if need)
|
| 179 |
-
# ###### Step 3. Generate and enjoy
|
| 180 |
-
# ''')
|
| 181 |
st.info("Step 1a. Draw your image with canvas"
|
| 182 |
" \n Step 1b. You also can upload image directly by select Upload in side bar"
|
| 183 |
" \n Step 2. Input prompt to instruct model (You can also change some config with advanced option if need)"
|
|
|
|
| 134 |
unsafe_allow_html=True,
|
| 135 |
)
|
| 136 |
if choose == 'Upload':
|
| 137 |
+
st.info("Upload your own scribbles, fill the prompt and enjoy")
|
| 138 |
with st.form(key='generate_form'):
|
| 139 |
upload_file = st.file_uploader("Upload image", type=["png", "jpg", "jpeg"])
|
| 140 |
prompt = st.text_input(label="Prompt", placeholder='Type your instruction')
|
|
|
|
| 172 |
col12.image(output_image, channels='RGB', width=None, clamp=False, caption='Generated image')
|
| 173 |
|
| 174 |
elif choose == 'Canvas':
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 175 |
st.info("Step 1a. Draw your image with canvas"
|
| 176 |
" \n Step 1b. You also can upload image directly by select Upload in side bar"
|
| 177 |
" \n Step 2. Input prompt to instruct model (You can also change some config with advanced option if need)"
|