Remove linux

This commit is contained in:
Skylar Kesselring 2024-11-07 21:51:58 -05:00
parent 813720905b
commit c25f164e28
3 changed files with 2 additions and 8 deletions

View File

@ -28,8 +28,7 @@ os.environ["TOKENIZERS_PARALLELISM"] = "false"
os.environ["HF_HUB_DISABLE_TELEMETRY"] = "1" os.environ["HF_HUB_DISABLE_TELEMETRY"] = "1"
HF_CACHE_PATH = Path("/root/.cache/huggingface/") HF_CACHE_PATH = Path("/root/.cache/huggingface/")
# Changed this to be compatible with Linux TEMP_HF_CACHE_PATH = Path("/root/.cache/temp_huggingface/")
TEMP_HF_CACHE_PATH = Path.home() / ".cache" / "temp_huggingface"
transformer_logging.set_verbosity_error() transformer_logging.set_verbosity_error()

View File

@ -75,13 +75,9 @@ async function handleRequest(request: NextRequest, path: string[]) {
backendUrl.searchParams.append(key, value); backendUrl.searchParams.append(key, value);
}); });
// Added this to allow it to run properly on Linux
const headers = new Headers(request.headers);
headers.delete("connection");
const response = await fetch(backendUrl, { const response = await fetch(backendUrl, {
method: request.method, method: request.method,
headers: headers, headers: request.headers,
body: request.body, body: request.body,
signal: request.signal, signal: request.signal,
// @ts-ignore // @ts-ignore

View File

@ -89,7 +89,6 @@ import voyageIcon from "../../../public/Voyage.png";
import googleIcon from "../../../public/Google.webp"; import googleIcon from "../../../public/Google.webp";
import xenforoIcon from "../../../public/Xenforo.svg"; import xenforoIcon from "../../../public/Xenforo.svg";
import { FaRobot } from "react-icons/fa"; import { FaRobot } from "react-icons/fa";
import { size } from "lodash";
export interface IconProps { export interface IconProps {
size?: number; size?: number;