JeCabrera commited on
Commit
3970a4c
·
verified ·
1 Parent(s): 703bcbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +24 -2
app.py CHANGED
@@ -895,8 +895,30 @@ with col2:
895
  action, mood, length, temperature)
896
 
897
  if response:
898
- st.subheader("Historia generada:")
899
- st.write(response)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
900
  except ValueError as e:
901
  st.error(f"Error: {str(e)}")
902
  else:
 
895
  action, mood, length, temperature)
896
 
897
  if response:
898
+ st.markdown(f"""
899
+ <div style="
900
+ border: 1px solid #ddd;
901
+ border-radius: 8px;
902
+ padding: 20px;
903
+ background-color: #ffffff;
904
+ box-shadow: 0 2px 4px rgba(0,0,0,0.1);
905
+ margin-top: 20px;
906
+ ">
907
+ <h3 style="
908
+ color: #333;
909
+ margin-bottom: 15px;
910
+ font-size: 1.2em;
911
+ border-bottom: 1px solid #eee;
912
+ padding-bottom: 10px;
913
+ ">Historia Generada:</h3>
914
+ <p style="
915
+ white-space: pre-line;
916
+ line-height: 1.6;
917
+ color: #444;
918
+ font-size: 1.1em;
919
+ ">{response}</p>
920
+ </div>
921
+ """, unsafe_allow_html=True)
922
  except ValueError as e:
923
  st.error(f"Error: {str(e)}")
924
  else: