Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -129,12 +129,13 @@ outputs = model.generate(
|
|
| 129 |
)
|
| 130 |
|
| 131 |
# Decode generated text
|
| 132 |
-
description = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 133 |
-
|
| 134 |
-
# Display the final generated description
|
| 135 |
-
st.write("### Final Generated Description")
|
| 136 |
-
st.write(description)
|
| 137 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 138 |
else:
|
| 139 |
st.warning("Please select a brand.")
|
| 140 |
|
|
|
|
| 129 |
)
|
| 130 |
|
| 131 |
# Decode generated text
|
| 132 |
+
description = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
|
|
|
|
|
|
|
|
|
|
|
|
| 133 |
|
| 134 |
+
# Display the final generated description
|
| 135 |
+
st.write("### Final Generated Description")
|
| 136 |
+
st.write(description)
|
| 137 |
+
else:
|
| 138 |
+
st.warning("No data available for the selected watch.")
|
| 139 |
else:
|
| 140 |
st.warning("Please select a brand.")
|
| 141 |
|