`gr.load()` does not work inside `gr.Blocks`
Closed this issue · 2 comments
abidlabs commented
Describe the bug
This does not work:
import gradio as gr
with gr.Blocks() as demo:
gr.load("abidlabs/en2fr", src="spaces")
demo.launch()
but this does:
import gradio as gr
demo = gr.load("abidlabs/en2fr", src="spaces")
demo.launch()
Have you searched existing issues? 🔎
- I have searched and found no existing issues
Reproduction
See above
Screenshot
No response
Logs
No response
System Info
gradio==4.31.3
Severity
I can work around it
freddyaboulton commented
I think this is a dupe of #7996
abidlabs commented
Ah thanks @freddyaboulton missed that one