Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -98,8 +98,9 @@ with col1:
|
|
98 |
cursor: pointer;
|
99 |
}
|
100 |
</style>
|
|
|
|
|
101 |
""", unsafe_allow_html=True)
|
102 |
-
submit = st.button("Escribir historia", key="generate_button", css_class="big-button")
|
103 |
|
104 |
# Display uploaded image
|
105 |
if uploaded_file is not None:
|
@@ -107,7 +108,7 @@ if uploaded_file is not None:
|
|
107 |
col1.image(image, caption="Imagen subida", use_column_width=True)
|
108 |
|
109 |
# Handle submit action
|
110 |
-
if
|
111 |
if uploaded_file or input_prompt:
|
112 |
try:
|
113 |
image_data = input_image_setup(uploaded_file)
|
|
|
98 |
cursor: pointer;
|
99 |
}
|
100 |
</style>
|
101 |
+
<button class="big-button" onclick="document.getElementById('generate_button').click();">Escribir historia</button>
|
102 |
+
<input type="submit" id="generate_button" style="display:none;">
|
103 |
""", unsafe_allow_html=True)
|
|
|
104 |
|
105 |
# Display uploaded image
|
106 |
if uploaded_file is not None:
|
|
|
108 |
col1.image(image, caption="Imagen subida", use_column_width=True)
|
109 |
|
110 |
# Handle submit action
|
111 |
+
if st.button("Escribir historia", key="generate_button"):
|
112 |
if uploaded_file or input_prompt:
|
113 |
try:
|
114 |
image_data = input_image_setup(uploaded_file)
|