Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,30 +101,6 @@ def main():
|
|
| 101 |
<p>Upload an image and get AI-generated captions instantly!</p>
|
| 102 |
</div>
|
| 103 |
""", unsafe_allow_html=True)
|
| 104 |
-
|
| 105 |
-
# Sidebar
|
| 106 |
-
with st.sidebar:
|
| 107 |
-
st.header("🔧 Settings")
|
| 108 |
-
st.markdown("### Model Information")
|
| 109 |
-
st.info("Using **BLIP-2** (Salesforce/blip2-opt-2.7b)")
|
| 110 |
-
|
| 111 |
-
# Custom prompt option
|
| 112 |
-
custom_prompt = st.text_input(
|
| 113 |
-
"Custom Prompt (Optional):",
|
| 114 |
-
placeholder="e.g., 'Question: What is in this image? Answer:'"
|
| 115 |
-
)
|
| 116 |
-
|
| 117 |
-
st.markdown("### About")
|
| 118 |
-
st.markdown("""
|
| 119 |
-
This app uses the **BLIP-2** model to generate natural language descriptions of images.
|
| 120 |
-
|
| 121 |
-
**Features:**
|
| 122 |
-
- 🖼️ Upload any image format
|
| 123 |
-
- 🤖 AI-powered captioning
|
| 124 |
-
- ⚡ Fast inference
|
| 125 |
-
- 🎯 Optional custom prompts
|
| 126 |
-
""")
|
| 127 |
-
|
| 128 |
# Main content
|
| 129 |
col1, col2 = st.columns([1, 1])
|
| 130 |
|
|
|
|
| 101 |
<p>Upload an image and get AI-generated captions instantly!</p>
|
| 102 |
</div>
|
| 103 |
""", unsafe_allow_html=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 104 |
# Main content
|
| 105 |
col1, col2 = st.columns([1, 1])
|
| 106 |
|