Chatbot streaming hotfix (#4537)

* changes

* changes

* changes

* changes
This commit is contained in:
aliabid94 2023-06-15 13:24:40 -07:00 committed by GitHub
parent b3b8ff9f48
commit 42d762c616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -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:

View File

@ -1 +1 @@
3.35.0
3.35.1

View File

@ -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));