Spaces:
Running
Running
Update app.py
Browse files351 unmodified lines352353354355356357358359360361362363364351 unmodified linestorch.cuda.empty_cache()general_prompt = f"""You're an expert image analyst. Provide a highly detailed, long-form description of this image <image>, (include text you see in the image).1. **Overall Summary:** A brief, one-paragraph overview of the entire scene.2. **Hint:** The objects that are included in the pictures are: {combined_captions}3. With addition of the following request: {user_input}Ensure that your total description is at least {min_words} words"""# 2. **Foreground Elements:** Describe the objects, including the skies/clouds, people, or elements closest to the viewer in meticulous detail. Mention their appearance, textures, and any actions they are performing.# 3. **Details:** If theres people, describe their race, outfits, expression, and what they're doing. If there are vehicles/phones, describe their models and brands. If there are vegetables/fruits, describe how they're presented, and their quantity.# 4. **Midground and Background:** Detail the environment behind the main subject. Describe the setting, landscape, architecture, and any other distant elements.# 5. **Atmosphere and Mood:** Analyze the image's lighting, color palette, and overall composition to describe the mood or feeling it evokes (e.g., joyful, somber, peaceful, chaotic).351 unmodified lines352353354355356357358359360361362351 unmodified linestorch.cuda.empty_cache()general_prompt = f"""You're an expert image analyst. Provide a highly detailed, long-form description of this image <image>, (include text you see in the image).Overall Summary: A brief, one-paragraph overview of the entire scene, with addition of the following request: {user_input}Ensure that your total description is at least {min_words} words"""# 2. **Hint:** The objects that are included in the pictures are: {combined_captions}#2. **Foreground Elements:** Describe the objects, including the skies/clouds, people, or elements closest to the viewer in meticulous detail. Mention their appearance, textures, and any actions they are performing.# 3. **Details:** If theres people, describe their race, outfits, expression, and what they're doing. If there are vehicles/phones, describe their models and brands. If there are vegetables/fruits, describe how they're presented, and their quantity.# 4. **Midground and Background:** Detail the environment behind the main subject. Describe the setting, landscape, architecture, and any other distant elements.# 5. **Atmosphere and Mood:** Analyze the image's lighting, color palette, and overall composition to describe the mood or feeling it evokes (e.g., joyful, somber, peaceful, chaotic).
app.py+3-5