Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Download components/editor/main/response.tsx from enzostvs/hub-api-playground: direct link, hf CLI and curl.
- Browser
- Download file 628 Bytes
-
https://huggingface.co/spaces/enzostvs/hub-api-playground/resolve/4bc2bc34ae9573e891260f801aa0fe05cc734e4c/components/editor/main/response.tsx
- Command line
-
hf download hf://spaces/enzostvs/hub-api-playground@4bc2bc34ae9573e891260f801aa0fe05cc734e4c/components/editor/main/response.tsx
-
curl -L -o response.tsx https://huggingface.co/spaces/enzostvs/hub-api-playground/resolve/4bc2bc34ae9573e891260f801aa0fe05cc734e4c/components/editor/main/response.tsx
628 Bytes
| import Highlight from "react-highlight"; | |
| import "node_modules/highlight.js/styles/night-owl.css"; | |
| import { Loading } from "@/components/loading"; | |
| export const Response = ({ res, loading }: { res: any; loading: boolean }) => { | |
| return ( | |
| <div className="overflow-auto h-full relative xl:col-span-2"> | |
| <Highlight className="json text-sm !bg-slate-950/10 !h-full !p-3 !font-code !whitespace-pre-wrap"> | |
| {JSON.stringify(res ?? {}, null, 2)} | |
| </Highlight> | |
| {loading && ( | |
| <Loading> | |
| <p className="text-slate-400 text-lg mt-4">Processing...</p> | |
| </Loading> | |
| )} | |
| </div> | |
| ); | |
| }; | |