Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -404,7 +404,7 @@ def process_images_for_task_type(images_state: List[Image.Image], task_type: str
|
|
404 |
|
405 |
with gr.Blocks(title="OneDiffusion Demo") as demo:
|
406 |
gr.Markdown("""
|
407 |
-
# OneDiffusion Demo
|
408 |
|
409 |
**Welcome to the OneDiffusion Demo!**
|
410 |
|
@@ -414,7 +414,7 @@ with gr.Blocks(title="OneDiffusion Demo") as demo:
|
|
414 |
|
415 |
2. **Upload Images**: Drag and drop images directly onto the upload area, or click to select files from your device.
|
416 |
|
417 |
-
3. **Generate Captions**: **If you upload any images**, Click the "Generate Captions
|
418 |
|
419 |
4. **Configure Generation Settings**: Expand the "Advanced Configuration" section to adjust parameters like the number of inference steps, guidance scale, image size, and more.
|
420 |
|
@@ -488,7 +488,7 @@ with gr.Blocks(title="OneDiffusion Demo") as demo:
|
|
488 |
|
489 |
captioning_message = gr.Textbox(
|
490 |
lines=2,
|
491 |
-
value="Describe the contents of the photo in
|
492 |
label="Custom message for captioner"
|
493 |
)
|
494 |
|
|
|
404 |
|
405 |
with gr.Blocks(title="OneDiffusion Demo") as demo:
|
406 |
gr.Markdown("""
|
407 |
+
# OneDiffusion Demo with LLaVA captioner
|
408 |
|
409 |
**Welcome to the OneDiffusion Demo!**
|
410 |
|
|
|
414 |
|
415 |
2. **Upload Images**: Drag and drop images directly onto the upload area, or click to select files from your device.
|
416 |
|
417 |
+
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.
|
418 |
|
419 |
4. **Configure Generation Settings**: Expand the "Advanced Configuration" section to adjust parameters like the number of inference steps, guidance scale, image size, and more.
|
420 |
|
|
|
488 |
|
489 |
captioning_message = gr.Textbox(
|
490 |
lines=2,
|
491 |
+
value="Describe the contents of the photo in 60 words.",
|
492 |
label="Custom message for captioner"
|
493 |
)
|
494 |
|