Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,7 @@ if st.button("Generate Code"):
|
|
55 |
with st.spinner("Generating code..."):
|
56 |
completed_text = generate_response(prompt)
|
57 |
st.success("Code generated successfully!")
|
58 |
-
st.
|
59 |
|
60 |
st.markdown("""
|
61 |
<style>
|
@@ -79,15 +79,11 @@ st.markdown("""
|
|
79 |
.stButton button:hover {
|
80 |
background-color: #5a52d1;
|
81 |
}
|
82 |
-
.
|
83 |
-
background-color: #
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
background-color: #4b4c5c;
|
88 |
-
}
|
89 |
-
.sidebar .sidebar-content label {
|
90 |
-
color: white;
|
91 |
}
|
92 |
</style>
|
93 |
""", unsafe_allow_html=True)
|
|
|
55 |
with st.spinner("Generating code..."):
|
56 |
completed_text = generate_response(prompt)
|
57 |
st.success("Code generated successfully!")
|
58 |
+
st.code(completed_text, language="python")
|
59 |
|
60 |
st.markdown("""
|
61 |
<style>
|
|
|
79 |
.stButton button:hover {
|
80 |
background-color: #5a52d1;
|
81 |
}
|
82 |
+
.stCodeBlock {
|
83 |
+
background-color: #272822;
|
84 |
+
color: #f8f8f2;
|
85 |
+
font-size: 1rem;
|
86 |
+
border-radius: 10px;
|
|
|
|
|
|
|
|
|
87 |
}
|
88 |
</style>
|
89 |
""", unsafe_allow_html=True)
|