correct indent
This commit is contained in:
parent
2deea86781
commit
e808096cf6
2 changed files with 36 additions and 35 deletions
|
@ -171,6 +171,7 @@ class ScriptRunner:
|
||||||
text = file.read()
|
text = file.read()
|
||||||
|
|
||||||
from types import ModuleType
|
from types import ModuleType
|
||||||
|
|
||||||
compiled = compile(text, filename, 'exec')
|
compiled = compile(text, filename, 'exec')
|
||||||
module = ModuleType(script.filename)
|
module = ModuleType(script.filename)
|
||||||
exec(compiled, module.__dict__)
|
exec(compiled, module.__dict__)
|
||||||
|
@ -189,6 +190,7 @@ def reload_script_body_only():
|
||||||
scripts_txt2img.reload_sources()
|
scripts_txt2img.reload_sources()
|
||||||
scripts_img2img.reload_sources()
|
scripts_img2img.reload_sources()
|
||||||
|
|
||||||
|
|
||||||
def reload_scripts(basedir):
|
def reload_scripts(basedir):
|
||||||
global scripts_txt2img, scripts_img2img
|
global scripts_txt2img, scripts_img2img
|
||||||
|
|
||||||
|
|
|
@ -1242,4 +1242,3 @@ if 'gradio_routes_templates_response' not in globals():
|
||||||
|
|
||||||
gradio_routes_templates_response = gradio.routes.templates.TemplateResponse
|
gradio_routes_templates_response = gradio.routes.templates.TemplateResponse
|
||||||
gradio.routes.templates.TemplateResponse = template_response
|
gradio.routes.templates.TemplateResponse = template_response
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue