From 35e2c3dd6ce71af5039d49a6b97eec0b490c0039 Mon Sep 17 00:00:00 2001 From: Manuel Kamper Date: Tue, 20 Aug 2024 19:30:33 +0200 Subject: [PATCH] Dateien nach "web_app/src/components" hochladen --- web_app/src/components/FileSelect.tsx | 23 +++-------------------- web_app/src/components/Header.tsx | 25 +------------------------ web_app/src/components/Shortcuts.tsx | 3 --- 3 files changed, 4 insertions(+), 47 deletions(-) diff --git a/web_app/src/components/FileSelect.tsx b/web_app/src/components/FileSelect.tsx index c75da22..2e8453f 100644 --- a/web_app/src/components/FileSelect.tsx +++ b/web_app/src/components/FileSelect.tsx @@ -37,32 +37,15 @@ export default function FileSelect(props: FileSelectProps) {
diff --git a/web_app/src/components/Header.tsx b/web_app/src/components/Header.tsx index e9d594e..fd1f5d3 100644 --- a/web_app/src/components/Header.tsx +++ b/web_app/src/components/Header.tsx @@ -12,7 +12,6 @@ import { getMediaBlob, getMediaFile } from "@/lib/api" import { useStore } from "@/lib/states" import SettingsDialog from "./Settings" import { cn, fileToImage } from "@/lib/utils" -import Coffee from "./Coffee" import { useToast } from "./ui/use-toast" const Header = () => { @@ -93,15 +92,6 @@ const Header = () => { <> )} - { - setFile(file) - }} - > - -
{ )}
- {file && !model.need_prompt ? ( - - - - ) : ( - <> - )} +
{model.need_prompt ? : <>}
- {serverConfig.disableModelSwitch ? <> : }
diff --git a/web_app/src/components/Shortcuts.tsx b/web_app/src/components/Shortcuts.tsx index 77105df..95701e3 100644 --- a/web_app/src/components/Shortcuts.tsx +++ b/web_app/src/components/Shortcuts.tsx @@ -51,9 +51,6 @@ export function Shortcuts() { return ( - - -