209 |
210 |
setSearchTerm(e.target.value)}
216 | _hover={{ borderColor: '#9B72F2', borderWidth: '1px' }}
217 | focusBorderColor={'#9B72F2'}
218 | />
219 | {fileName ? (
220 |
221 |
File: {fileName}
222 |
{
227 | fileRef.current = file
228 | setFileName(file?.[0].name || '')
229 | }}
230 | className="ml-2"
231 | >
232 |
237 |
238 |
239 | ) : (
240 |
{
245 | fileRef.current = file
246 | setFileName(file?.[0].name || '')
247 | }}
248 | className="ml-2"
249 | >
250 |
255 |
256 | )}
257 |
258 |
259 |
268 | {errorMessage && (
269 |
270 | {errorMessage}{" "}
271 |
272 | )}
273 | {loading ? (
274 | <>
275 |
276 | Estimated wait time: less than 5 minutes
277 |
278 |
283 | >
284 | ) : completion === '' ? null : (
285 | <>
286 |
{completion}
287 |
288 | Click for Additional Analysis
289 |
290 | {isOpen && (
291 |
{context}
292 | )}
293 | >
294 | )}
295 |