Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Chatbot streaming hotfix #4537

Merged
merged 4 commits into from Jun 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -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:

Expand Down
2 changes: 1 addition & 1 deletion gradio/version.txt
@@ -1 +1 @@
3.35.0
3.35.1
4 changes: 2 additions & 2 deletions js/chatbot/src/MarkdownCode.svelte
@@ -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";
Expand All @@ -14,7 +14,7 @@
let el: HTMLSpanElement;
let mounted = false;

onMount(() => {
afterUpdate(() => {
tick().then(() => {
requestAnimationFrame(() => {
el.innerHTML = DOMPurify.sanitize(marked.parse(message));
Expand Down