mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-17 11:29:58 +08:00
Chatbot streaming hotfix (#4537)
* changes * changes * changes * changes
This commit is contained in:
parent
b3b8ff9f48
commit
42d762c616
@ -6,7 +6,7 @@ No changes to highlight.
|
||||
|
||||
## Bug Fixes:
|
||||
|
||||
No changes to highlight.
|
||||
- Fix chatbot streaming by [@aliabid94](https://github.com/aliabid94) in [PR 4537](https://github.com/gradio-app/gradio/pull/4537)
|
||||
|
||||
## Other Changes:
|
||||
|
||||
|
@ -1 +1 @@
|
||||
3.35.0
|
||||
3.35.1
|
||||
|
@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import { onMount, tick } from "svelte";
|
||||
import { afterUpdate, tick } from "svelte";
|
||||
import DOMPurify from "dompurify";
|
||||
import render_math_in_element from "katex/dist/contrib/auto-render.js";
|
||||
import { marked } from "./utils";
|
||||
@ -14,7 +14,7 @@
|
||||
let el: HTMLSpanElement;
|
||||
let mounted = false;
|
||||
|
||||
onMount(() => {
|
||||
afterUpdate(() => {
|
||||
tick().then(() => {
|
||||
requestAnimationFrame(() => {
|
||||
el.innerHTML = DOMPurify.sanitize(marked.parse(message));
|
||||
|
Loading…
Reference in New Issue
Block a user