Comments (2)
No it points to the rootpath of webui
>scripts.basedir()
>'xxxxx\\stable-diffusion-webui'
from promptgallery-stable-diffusion-webui.
No, you shoud not use it in function.
But like this:
extension_dir = scripts.basedir()
def on_app_started(demo: Optional[gr.Blocks], app: FastAPI):
app.mount('/prompt_gallery', StaticFiles(directory=extension_dir,html=True))
from promptgallery-stable-diffusion-webui.
Related Issues (20)
- Google Colab Support HOT 2
- Error when selecting generated images for prompt-sets HOT 19
- [enhancement] add new prompt from ui HOT 2
- [Enhancement] Use only the same Port and IP as Stable-Diffusion-WebUI HOT 2
- I follow the tutorial but in my webUI there are not all the boxes that appear in the video HOT 4
- Permission problem when launching webui.py HOT 9
- [Enhancement]Use scripts.basedir() than prompt_gallery_name.json HOT 3
- BUG: Does not correctly parse sampler index HOT 1
- With open(file_path, "rb") as f: PermissionErorr HOT 10
- IsADirectoryError when pressing 'Show pics' button HOT 6
- AssertionError: trying to open image file not in temporary directory HOT 1
- Use multiple models? HOT 2
- It won't work for LAN mode. HOT 1
- Why do I need this? HOT 2
- Unable to use the extension HOT 1
- Feature Request: Option to show selected avatars image on all cards HOT 2
- Extension breaks when --data-dir is used. HOT 7
- Size param not working HOT 1
- A Number Of Issues
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from promptgallery-stable-diffusion-webui.