Spaces:
Running
Running
Download frontend/src/components/SystemPrompt.tsx from nvikou/chatbot-ai: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/spaces/nvikou/chatbot-ai/resolve/main/frontend/src/components/SystemPrompt.tsx
- Command line
-
hf download hf://spaces/nvikou/chatbot-ai/frontend/src/components/SystemPrompt.tsx
-
curl -L -o SystemPrompt.tsx https://huggingface.co/spaces/nvikou/chatbot-ai/resolve/main/frontend/src/components/SystemPrompt.tsx
419 Bytes
| import React from 'react' | |
| export default function SystemPrompt({ value, onChange }: { value: string; onChange: (v: string) => void }) { | |
| return ( | |
| <textarea | |
| className="w-full h-24 bg-zinc-900 border border-zinc-700 rounded-xl p-3" | |
| placeholder="Системное сообщение (необязательно)" | |
| value={value} | |
| onChange={e => onChange(e.target.value)} | |
| /> | |
| ) | |
| } | |