Image_Generation1 file match
generateframeImage2 file matches
replicate_starter4 file matches
Starter app for Replicate on Val Town to generate images
You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/...?q=image&page=3&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=image
Returns an array of strings in format "username" or "username/projectName"
Found 9901 results for "image"(2572ms)
109}
110
111if (uploadedFile.type.startsWith('image/')) {
112endpoint = '/api/parse/image';
113requestData = { type: 'image', content: parseInput };
114} else if (uploadedFile.type === 'application/pdf') {
115endpoint = '/api/parse/pdf';
150151// Validate file type
152const isImage = file.type.startsWith('image/');
153const isPDF = file.type === 'application/pdf';
154
155if (!isImage && !isPDF) {
156setError('Please select an image file (JPG, PNG, etc.) or a PDF file');
157return;
158}
274ref={fileInputRef}
275type="file"
276accept="image/*,.pdf"
277onChange={handleFileUpload}
278className="w-full px-3 py-2 border border-gray-300 rounded-md focus:outline-none focus:ring-2 focus:ring-blue-500"
279/>
280<div className="mt-2 text-sm text-gray-600">
281📷 Images (JPG, PNG, etc.) or 📄 PDF files supported
282</div>
283</div>
286<span className="mr-2">✅</span>
287<span>
288{uploadedFile.type.startsWith('image/') ? '📷' : '📄'}
289{uploadedFile.name} uploaded and ready to parse
290</span>
19const recipeResult = await sqlite.execute(`
20INSERT INTO ${RECIPES_TABLE}
21(title, description, servings, prep_time, cook_time, difficulty, tags, source, image_url, steps)
22VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
23`, [
30tags ? JSON.stringify(tags) : null,
31recipeData.source || null,
32recipeData.imageUrl || null,
33JSON.stringify(steps)
34]);
108tags: recipeRow.tags ? JSON.parse(recipeRow.tags as string) : undefined,
109source: recipeRow.source as string || undefined,
110imageUrl: recipeRow.image_url as string || undefined,
111createdAt: recipeRow.created_at as string,
112updatedAt: recipeRow.updated_at as string
168const dbKey = key === 'prepTime' ? 'prep_time' :
169key === 'cookTime' ? 'cook_time' :
170key === 'imageUrl' ? 'image_url' : key;
171setParts.push(`${dbKey} = ?`);
172params.push(value);