Spaces:
Build error
Build error
Mishig
commited on
Commit
•
7179080
1
Parent(s):
ee47ff3
Revert "[Small model] Explicitly close AsyncGenerator" (#709)
Browse files
src/lib/server/generateFromDefaultEndpoint.ts
CHANGED
@@ -21,7 +21,6 @@ export async function generateFromDefaultEndpoint({
|
|
21 |
generated_text = generated_text.slice(0, -stop.length).trimEnd();
|
22 |
}
|
23 |
}
|
24 |
-
tokenStream.return();
|
25 |
return generated_text;
|
26 |
}
|
27 |
}
|
|
|
21 |
generated_text = generated_text.slice(0, -stop.length).trimEnd();
|
22 |
}
|
23 |
}
|
|
|
24 |
return generated_text;
|
25 |
}
|
26 |
}
|