Mr-Vicky-01 commited on
Commit
3ef8b3a
·
verified ·
1 Parent(s): 9329833

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ genai.configure(api_key = os.getenv('GOOGLE_API_KEY'))
7
 
8
  model=genai.GenerativeModel('gemini-1.5-pro-latest')
9
  input_prompt = """
10
- As an HTML and CSS expert, your task is to create complete HTML and CSS code based on the provided screenshot, ensuring clear and functional markup. Provide a main.html file with inline CSS that replicates the same color and same style as the given screenshot.
11
 
12
  Output structure:
13
  Start and end with (```)
@@ -45,7 +45,7 @@ if upload_file is not None:
45
  submit = st.button('Create a webpage')
46
  if submit:
47
  image_data = input_image_setup(uploaded_file=upload_file)
48
- with st.spinner("Processing..."):
49
  response = generate_response(input_prompt, image_data)
50
  st.subheader("CODE:")
51
  st.markdown(response)
 
7
 
8
  model=genai.GenerativeModel('gemini-1.5-pro-latest')
9
  input_prompt = """
10
+ As an HTML and CSS expert, your task is to create complete HTML and CSS code based on the provided screenshot, ensuring clear and functional markup. Provide a main.html file with inline CSS that replicates the exact color and style as shown in the given screenshot.
11
 
12
  Output structure:
13
  Start and end with (```)
 
45
  submit = st.button('Create a webpage')
46
  if submit:
47
  image_data = input_image_setup(uploaded_file=upload_file)
48
+ with st.spinner("Building the Webpage..."):
49
  response = generate_response(input_prompt, image_data)
50
  st.subheader("CODE:")
51
  st.markdown(response)