Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,10 +18,10 @@ MODELS = {
|
|
18 |
"sizes": {
|
19 |
"1.5B": "Spestly/Atlas-R1-1.5B-Preview",
|
20 |
},
|
21 |
-
"emoji": "",
|
22 |
"experimental": True,
|
23 |
-
"is_vision": False, #
|
24 |
-
"system_prompt_env": "ATLAS_FLASH_1215", #
|
25 |
},
|
26 |
}
|
27 |
|
@@ -176,7 +176,7 @@ class AtlasInferenceApp:
|
|
176 |
):
|
177 |
st.markdown(message["content"])
|
178 |
if "image" in message:
|
179 |
-
st.image(message["image"], caption="Uploaded Image",
|
180 |
|
181 |
# Input box for user messages
|
182 |
if prompt := st.chat_input("Message Atlas..."):
|
@@ -189,7 +189,7 @@ class AtlasInferenceApp:
|
|
189 |
with st.chat_message("user", avatar=USER_PFP):
|
190 |
st.markdown(prompt)
|
191 |
if uploaded_image:
|
192 |
-
st.image(uploaded_image, caption="Uploaded Image",
|
193 |
|
194 |
with st.chat_message("assistant", avatar=AI_PFP):
|
195 |
with st.spinner("Generating response..."):
|
|
|
18 |
"sizes": {
|
19 |
"1.5B": "Spestly/Atlas-R1-1.5B-Preview",
|
20 |
},
|
21 |
+
"emoji": "π¦",
|
22 |
"experimental": True,
|
23 |
+
"is_vision": False, # Enable vision support for this model
|
24 |
+
"system_prompt_env": "ATLAS_FLASH_1215", # Environment variable for system prompt
|
25 |
},
|
26 |
}
|
27 |
|
|
|
176 |
):
|
177 |
st.markdown(message["content"])
|
178 |
if "image" in message:
|
179 |
+
st.image(message["image"], caption="Uploaded Image", use_container_width=True) # Updated parameter
|
180 |
|
181 |
# Input box for user messages
|
182 |
if prompt := st.chat_input("Message Atlas..."):
|
|
|
189 |
with st.chat_message("user", avatar=USER_PFP):
|
190 |
st.markdown(prompt)
|
191 |
if uploaded_image:
|
192 |
+
st.image(uploaded_image, caption="Uploaded Image", use_container_width=True) # Updated parameter
|
193 |
|
194 |
with st.chat_message("assistant", avatar=AI_PFP):
|
195 |
with st.spinner("Generating response..."):
|