Skip to content

Commit

Permalink
remove space path after invoke
Browse files Browse the repository at this point in the history
  • Loading branch information
lllyasviel committed Aug 17, 2024
1 parent fcf71fd commit 4bb5613
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules_forge/forge_space.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def build_html(title, installed=False, url=None):
return f'<div>{title}</div><div style="color: grey;">Not Installed</div>'

if isinstance(url, str):
return f'<div>{title}</div><div>Currently Running: <a href="{url}" style="color: green;" target="_blank">{url}</a></div>'
return f'<div>{title}</div><div style="color: green;">Currently Running: <a href="{url}" style="color: blue;" target="_blank">{url}</a></div>'
else:
return f'<div>{title}</div><div style="color: grey;">Installed, Ready to Launch</div>'

Expand Down Expand Up @@ -130,6 +130,7 @@ def gradio_worker(self):
if module_name in sys.modules:
del sys.modules[module_name]

sys.path.remove(self.hf_path)
return


Expand Down

0 comments on commit 4bb5613

Please sign in to comment.