coyotte508 HF staff commited on
Commit
833fd87
1 Parent(s): 90b4e98

🐛 Fix generating bug (#68)

Browse files
src/routes/conversation/[id]/+page.svelte CHANGED
@@ -14,11 +14,12 @@
14
 
15
  const hf = new HfInference();
16
 
17
- let conversationId = $page.params.id;
18
  let loading = false;
19
  let pending = false;
20
 
21
  async function getTextGenerationStream(inputs: string) {
 
 
22
  const response = hf.endpoint($page.url.href).textGenerationStream(
23
  {
24
  inputs,
 
14
 
15
  const hf = new HfInference();
16
 
 
17
  let loading = false;
18
  let pending = false;
19
 
20
  async function getTextGenerationStream(inputs: string) {
21
+ let conversationId = $page.params.id;
22
+
23
  const response = hf.endpoint($page.url.href).textGenerationStream(
24
  {
25
  inputs,