Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
wip
Browse files
src/lib/components/InferencePlayground/InferencePlaygroundConversation.svelte
CHANGED
|
@@ -7,9 +7,9 @@
|
|
| 7 |
import Message from "./InferencePlaygroundMessage.svelte";
|
| 8 |
import IconPlus from "../Icons/IconPlus.svelte";
|
| 9 |
|
| 10 |
-
export let loading;
|
| 11 |
export let conversation: Conversation;
|
| 12 |
-
export let
|
|
|
|
| 13 |
|
| 14 |
const dispatch = createEventDispatcher<{
|
| 15 |
addMessage: void;
|
|
|
|
| 7 |
import Message from "./InferencePlaygroundMessage.svelte";
|
| 8 |
import IconPlus from "../Icons/IconPlus.svelte";
|
| 9 |
|
|
|
|
| 10 |
export let conversation: Conversation;
|
| 11 |
+
export let loading: boolean;
|
| 12 |
+
export let viewCode: boolean;
|
| 13 |
|
| 14 |
const dispatch = createEventDispatcher<{
|
| 15 |
addMessage: void;
|
src/lib/components/InferencePlayground/InferencePlaygroundHFTokenModal.svelte
CHANGED
|
@@ -11,8 +11,8 @@
|
|
| 11 |
const dispatch = createEventDispatcher<{ close: void }>();
|
| 12 |
|
| 13 |
function handleKeydown(event: KeyboardEvent) {
|
| 14 |
-
|
| 15 |
-
if (
|
| 16 |
event.preventDefault();
|
| 17 |
dispatch("close");
|
| 18 |
}
|
|
|
|
| 11 |
const dispatch = createEventDispatcher<{ close: void }>();
|
| 12 |
|
| 13 |
function handleKeydown(event: KeyboardEvent) {
|
| 14 |
+
const { key } = event;
|
| 15 |
+
if (key === "Escape") {
|
| 16 |
event.preventDefault();
|
| 17 |
dispatch("close");
|
| 18 |
}
|
src/lib/components/InferencePlayground/InferencePlaygroundModelSelectorModal.svelte
CHANGED
|
@@ -13,7 +13,8 @@
|
|
| 13 |
const dispatch = createEventDispatcher<{ modelSelected: string; close: void }>();
|
| 14 |
|
| 15 |
function handleKeydown(event: KeyboardEvent) {
|
| 16 |
-
|
|
|
|
| 17 |
event.preventDefault();
|
| 18 |
dispatch("close");
|
| 19 |
}
|
|
|
|
| 13 |
const dispatch = createEventDispatcher<{ modelSelected: string; close: void }>();
|
| 14 |
|
| 15 |
function handleKeydown(event: KeyboardEvent) {
|
| 16 |
+
const { key } = event;
|
| 17 |
+
if (key === "Escape") {
|
| 18 |
event.preventDefault();
|
| 19 |
dispatch("close");
|
| 20 |
}
|