Spaces:
Running
Running
Update frontend/src/components/UploadSection.tsx
Browse files
frontend/src/components/UploadSection.tsx
CHANGED
|
@@ -154,7 +154,12 @@ export function UploadSection({
|
|
| 154 |
|
| 155 |
{/* Analyze Button */}
|
| 156 |
<button
|
| 157 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 158 |
disabled={!uploadedImage || !selectedModel}
|
| 159 |
className={`w-full mt-6 text-white py-3 rounded-lg font-medium transition-colors ${
|
| 160 |
!uploadedImage || !selectedModel
|
|
|
|
| 154 |
|
| 155 |
{/* Analyze Button */}
|
| 156 |
<button
|
| 157 |
+
type="button"
|
| 158 |
+
onClick={(e) => {
|
| 159 |
+
// Prevent clicks from bubbling to the upload area (which would trigger file select)
|
| 160 |
+
e.stopPropagation();
|
| 161 |
+
onAnalyze();
|
| 162 |
+
}}
|
| 163 |
disabled={!uploadedImage || !selectedModel}
|
| 164 |
className={`w-full mt-6 text-white py-3 rounded-lg font-medium transition-colors ${
|
| 165 |
!uploadedImage || !selectedModel
|