Update app.py
Browse files
app.py
CHANGED
@@ -55,7 +55,14 @@ if st.button("Generate Code"):
|
|
55 |
completed_text = generate_response(prompt)
|
56 |
st.success("Code generated successfully!")
|
57 |
|
|
|
|
|
|
|
58 |
# Display code blocks based on predefined markers
|
|
|
|
|
|
|
|
|
59 |
if "HTML:" in completed_text:
|
60 |
html_code = completed_text.split("HTML:")[1].split("CSS:")[0].strip()
|
61 |
st.subheader("HTML Code")
|
|
|
55 |
completed_text = generate_response(prompt)
|
56 |
st.success("Code generated successfully!")
|
57 |
|
58 |
+
st.subheader("Raw Response")
|
59 |
+
st.code(completed_text, language="text")
|
60 |
+
|
61 |
# Display code blocks based on predefined markers
|
62 |
+
html_code = ""
|
63 |
+
css_code = ""
|
64 |
+
js_code = ""
|
65 |
+
|
66 |
if "HTML:" in completed_text:
|
67 |
html_code = completed_text.split("HTML:")[1].split("CSS:")[0].strip()
|
68 |
st.subheader("HTML Code")
|