Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion frontend/src/pages/UploadPage/UploadPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default function UploadPage() {
const [imageType, setImageType] = useState('crisis_map');
const [countries, setCountries] = useState<string[]>([]);
const [title, setTitle] = useState('');
const [isManualMode, setIsManualMode] = useState(false);
const [isManualMode, setIsManualMode] = useState(true);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Honor manual-mode default for multi-image uploads

The new default sets isManualMode to true, so the UI now shows the VLM toggle off by default. However, the multi-image upload path still always appends model_name from selectedVlmModel before posting to /api/images/multi, so the backend will invoke a VLM even when the toggle is off. Users uploading multiple files without re-enabling the toggle will unexpectedly get AI-generated captions instead of staying in manual mode. Consider skipping the model_name for multi uploads when manual mode is selected so the default matches behavior.

Useful? React with 👍 / 👎.


// Drone metadata fields
const [centerLon, setCenterLon] = useState<string>('');
Expand Down

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
import{r,T as e}from"./index-Rlfiitbv.js";const o=()=>{const t=r.useContext(e);if(t===void 0)throw new Error("useAdmin must be used within an AdminProvider");return t};export{o as u};
import{r,T as e}from"./index-CcfIBRoF.js";const o=()=>{const t=r.useContext(e);if(t===void 0)throw new Error("useAdmin must be used within an AdminProvider");return t};export{o as u};
2 changes: 1 addition & 1 deletion py_backend/static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
});
}
</script>
<script type="module" crossorigin src="/assets/index-Rlfiitbv.js"></script>
<script type="module" crossorigin src="/assets/index-CcfIBRoF.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-BzCX1Bzq.css">
</head>
<body>
Expand Down
Loading