Arsala Grey
commited on
Commit
•
01da88d
1
Parent(s):
c2d5ffe
Added new HF zephyr model
Browse files
index.js
CHANGED
@@ -4,11 +4,11 @@ import { HfInference } from "https://cdn.skypack.dev/@huggingface/inference@late
|
|
4 |
const app = createApp({
|
5 |
setup() {
|
6 |
const token = ref(localStorage.getItem("token") || "");
|
7 |
-
const userPrompt = ref("Write about the difference between AI Engineering");
|
8 |
const currentGeneratedText = ref("");
|
9 |
-
const models = ref(["mistralai/Mistral-7B-v0.1",
|
10 |
"google/flan-t5-xxl"]);
|
11 |
-
const selectedModel = ref("
|
12 |
const isRunning = ref(false);
|
13 |
const responseLength = ref("150");
|
14 |
const temperature = ref("1.0");
|
@@ -79,6 +79,7 @@ const app = createApp({
|
|
79 |
if (localStorageToken) {
|
80 |
token.value = localStorageToken;
|
81 |
}
|
|
|
82 |
});
|
83 |
|
84 |
return {
|
|
|
4 |
const app = createApp({
|
5 |
setup() {
|
6 |
const token = ref(localStorage.getItem("token") || "");
|
7 |
+
const userPrompt = ref("Write about the difference between Data Science and AI Engineering.");
|
8 |
const currentGeneratedText = ref("");
|
9 |
+
const models = ref(["HuggingFaceH4/zephyr-7b-beta", "mistralai/Mistral-7B-v0.1",
|
10 |
"google/flan-t5-xxl"]);
|
11 |
+
const selectedModel = ref("");
|
12 |
const isRunning = ref(false);
|
13 |
const responseLength = ref("150");
|
14 |
const temperature = ref("1.0");
|
|
|
79 |
if (localStorageToken) {
|
80 |
token.value = localStorageToken;
|
81 |
}
|
82 |
+
selectedModel.value = models.value[0];
|
83 |
});
|
84 |
|
85 |
return {
|