mirror of
https://github.com/gradio-app/gradio.git
synced 2025-03-01 11:45:36 +08:00
Escape triple quotes when creating space.py
for custom components (#7290)
* escape triple quotes when creating space.py for custom components * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
e5344ba0cd
commit
db27df36d2
5
.changeset/light-lemons-shout.md
Normal file
5
.changeset/light-lemons-shout.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Escape triple quotes when creating `space.py` for custom components
|
@ -837,6 +837,7 @@ if __name__ == '__main__':
|
||||
|
||||
To ignore this error pass `--suppress-demo-check` to the docs command."""
|
||||
)
|
||||
demo = demo.replace('"""', '\\"\\"\\"')
|
||||
|
||||
source = """
|
||||
import gradio as gr
|
||||
|
Loading…
Reference in New Issue
Block a user