Spaces:
Build error
Build error
Update app.py
Browse files403 unmodified lines4044054064074084094103 unmodified lines414415416417418419420403 unmodified lineswith gr.Blocks(title="OneDiffusion Demo") as demo:gr.Markdown("""# OneDiffusion Demo with LLaVA captioner**Welcome to the OneDiffusion Demo!**3 unmodified lines2. **Upload Images**: Drag and drop images directly onto the upload area, or click to select files from your device.3. **Generate Captions**: **If you upload any images**, Click the "Generate Captions" button to generate descriptive captions for your uploaded images (depend on the task). You can enter a custom message in the "Custom Message for captioner" textbox e.g., "caption in 30 words" instead of 50 words.4. **Configure Generation Settings**: Expand the "Advanced Configuration" section to adjust parameters like the number of inference steps, guidance scale, image size, and more.403 unmodified lines4044054064074084094103 unmodified lines414415416417418419420403 unmodified lineswith gr.Blocks(title="OneDiffusion Demo") as demo:gr.Markdown("""# OneDiffusion Demo without captioner**Welcome to the OneDiffusion Demo!**3 unmodified lines2. **Upload Images**: Drag and drop images directly onto the upload area, or click to select files from your device.3. **Generate Captions**: **If you upload any images**, Click the "Generate Captions" button to format the text prompt according to chosen task. In this demo, you will NEED to provide the caption of each source image manually.4. **Configure Generation Settings**: Expand the "Advanced Configuration" section to adjust parameters like the number of inference steps, guidance scale, image size, and more.
app.py+2-2