Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -134,6 +134,8 @@ elif camera_image is not None:
|
|
| 134 |
if st.session_state.image is not None:
|
| 135 |
st.image(st.session_state.image, caption='Processed Image', use_container_width=True)
|
| 136 |
|
|
|
|
|
|
|
| 137 |
# Classify the car image
|
| 138 |
with st.spinner('Analyzing image...'):
|
| 139 |
car_classifications = classify_image(st.session_state.image)
|
|
@@ -172,7 +174,6 @@ if st.session_state.image is not None:
|
|
| 172 |
st.divider()
|
| 173 |
|
| 174 |
# Get additional information using GPT-3.5-turbo
|
| 175 |
-
current_year = datetime.now().year
|
| 176 |
overview = get_car_overview(make_name, model_name, current_year)
|
| 177 |
st.write("Car Overview:")
|
| 178 |
st.write(overview)
|
|
|
|
| 134 |
if st.session_state.image is not None:
|
| 135 |
st.image(st.session_state.image, caption='Processed Image', use_container_width=True)
|
| 136 |
|
| 137 |
+
current_year = datetime.now().year
|
| 138 |
+
|
| 139 |
# Classify the car image
|
| 140 |
with st.spinner('Analyzing image...'):
|
| 141 |
car_classifications = classify_image(st.session_state.image)
|
|
|
|
| 174 |
st.divider()
|
| 175 |
|
| 176 |
# Get additional information using GPT-3.5-turbo
|
|
|
|
| 177 |
overview = get_car_overview(make_name, model_name, current_year)
|
| 178 |
st.write("Car Overview:")
|
| 179 |
st.write(overview)
|