Skip to content

AI #434

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 16 commits into
base: main
Choose a base branch
from
Draft

AI #434

Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Send icon
  • Loading branch information
alexmojaki committed Jun 15, 2023
commit 7a88f2a65b24de74a27ac3bd427e9b28ecf5f1f2
9 changes: 8 additions & 1 deletion frontend/src/AI.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ import terms from "./terms.json";
import React from "react";
import {useInput} from "./frontendlib/HookInput";
import LoadingIndicator from "./components/LoadingIndicator";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {faPaperPlane, faRobot} from "@fortawesome/free-solid-svg-icons";

export function AI({ response, running }) {
const userMessage = useInput("", {
Expand Down Expand Up @@ -58,7 +60,12 @@ export function AI({ response, running }) {
className="btn btn-primary"
disabled={running}
>
{running ? <LoadingIndicator/> : "Send"} {/* TODO terms */}
{running ?
<LoadingIndicator/> :
<>
<FontAwesomeIcon icon={faPaperPlane}/> Send {/* TODO terms */}
</>
}
</button>
<br/>
<ReactMarkdown>
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy