Spaces:
Sleeping
Sleeping
Update app.py
#3
by
Mr-Vicky-01
- opened
app.py
CHANGED
|
@@ -48,12 +48,12 @@ if submit:
|
|
| 48 |
with st.spinner("Building the Webpage..."):
|
| 49 |
response = generate_response(input_prompt, image_data)
|
| 50 |
|
| 51 |
-
|
| 52 |
-
|
| 53 |
|
| 54 |
-
|
| 55 |
-
|
| 56 |
-
|
| 57 |
|
| 58 |
# Render the HTML Output with larger dimensions
|
| 59 |
if st.button("Render This Code"):
|
|
|
|
| 48 |
with st.spinner("Building the Webpage..."):
|
| 49 |
response = generate_response(input_prompt, image_data)
|
| 50 |
|
| 51 |
+
# Extract code from the response
|
| 52 |
+
code = response.strip("```")
|
| 53 |
|
| 54 |
+
# Display the code
|
| 55 |
+
st.subheader("Generated Code:")
|
| 56 |
+
st.code(code, language='html')
|
| 57 |
|
| 58 |
# Render the HTML Output with larger dimensions
|
| 59 |
if st.button("Render This Code"):
|