Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -50,7 +50,7 @@ def page5():
|
|
50 |
print(st.session_state["system_prompt"])
|
51 |
st.session_state["caption_system_prompt"] = caption_system_prompt
|
52 |
st.session_state["caption_prompt"] = caption_prompt
|
53 |
-
st.session_state["
|
54 |
st.success("Saved your prompts")
|
55 |
with col2:
|
56 |
if st.button("Start Testing!"):
|
@@ -104,7 +104,7 @@ def page2():
|
|
104 |
brand_image_embed = embed_base64_for_claude(brand_summary_html["location"])
|
105 |
brand_summary_response = create_claude_image_request_for_image_captioning(
|
106 |
"Fashion expert of understanding brand details",
|
107 |
-
st.session_state["
|
108 |
st.session_state['brand_summary'] = brand_summary_response
|
109 |
else:
|
110 |
st.text(f"Scrapfly failed due to: {brand_summary_html}")
|
|
|
50 |
print(st.session_state["system_prompt"])
|
51 |
st.session_state["caption_system_prompt"] = caption_system_prompt
|
52 |
st.session_state["caption_prompt"] = caption_prompt
|
53 |
+
st.session_state["brand_prompt"] = brand_summary_prompt
|
54 |
st.success("Saved your prompts")
|
55 |
with col2:
|
56 |
if st.button("Start Testing!"):
|
|
|
104 |
brand_image_embed = embed_base64_for_claude(brand_summary_html["location"])
|
105 |
brand_summary_response = create_claude_image_request_for_image_captioning(
|
106 |
"Fashion expert of understanding brand details",
|
107 |
+
st.session_state["brand_prompt"], brand_image_embed)
|
108 |
st.session_state['brand_summary'] = brand_summary_response
|
109 |
else:
|
110 |
st.text(f"Scrapfly failed due to: {brand_summary_html}")
|