enzostvs HF Staff commited on
Commit
17c8ce5
·
1 Parent(s): ad4aac8

fake loading

Browse files
src/lib/components/billing/BillingManagementModal.svelte CHANGED
@@ -19,7 +19,7 @@
19
  async function saveSettings() {
20
  if (loading) return;
21
  loading = true;
22
- await new Promise((resolve) => setTimeout(resolve, 1_000));
23
  loading = false;
24
  if (billingOption === 'personal') {
25
  localStorage.removeItem('hf-playground-billing-option');
 
19
  async function saveSettings() {
20
  if (loading) return;
21
  loading = true;
22
+ await new Promise((resolve) => setTimeout(resolve, 600));
23
  loading = false;
24
  if (billingOption === 'personal') {
25
  localStorage.removeItem('hf-playground-billing-option');
src/lib/components/chat/User.svelte CHANGED
@@ -70,7 +70,7 @@
70
  signinModalState.open = true;
71
  return;
72
  }
73
- errorMessage.clear();
74
  const newNodes: Node[] = [];
75
  const newEdges: Edge[] = [];
76
  const newMessages = [...messages, { role: 'user', content: prompt }] as ChatMessage[];
 
70
  signinModalState.open = true;
71
  return;
72
  }
73
+ errorMessage = new Set();
74
  const newNodes: Node[] = [];
75
  const newEdges: Edge[] = [];
76
  const newMessages = [...messages, { role: 'user', content: prompt }] as ChatMessage[];
src/lib/components/model/SettingsModel.svelte CHANGED
@@ -62,7 +62,7 @@
62
  async function handleSave() {
63
  if (loading) return;
64
  loading = true;
65
- await new Promise((resolve) => setTimeout(resolve, 1_000));
66
  saveModelSettings(model?.id!, { temperature, top_p, max_tokens, provider });
67
  loading = false;
68
  }
 
62
  async function handleSave() {
63
  if (loading) return;
64
  loading = true;
65
+ await new Promise((resolve) => setTimeout(resolve, 600));
66
  saveModelSettings(model?.id!, { temperature, top_p, max_tokens, provider });
67
  loading = false;
68
  }