Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -537,6 +537,18 @@ def create_interface():
|
|
| 537 |
height=400
|
| 538 |
)
|
| 539 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 540 |
# Process button
|
| 541 |
process_btn = gr.Button(
|
| 542 |
"🚀 Analyze & Process",
|
|
@@ -571,9 +583,10 @@ def create_interface():
|
|
| 571 |
gr.Markdown("### 📝 Instructions:")
|
| 572 |
gr.Markdown("""
|
| 573 |
1. **Upload an image** that needs restoration (blurry, dark, noisy, etc.)
|
| 574 |
-
2. **
|
| 575 |
-
3. **
|
| 576 |
-
4. **
|
|
|
|
| 577 |
""")
|
| 578 |
|
| 579 |
return demo
|
|
|
|
| 537 |
height=400
|
| 538 |
)
|
| 539 |
|
| 540 |
+
# Add examples section
|
| 541 |
+
gr.Examples(
|
| 542 |
+
examples=[
|
| 543 |
+
["example/img4.png"],
|
| 544 |
+
["example/img10.png"],
|
| 545 |
+
["example/img12.png"],
|
| 546 |
+
["example/img14.jpg"]
|
| 547 |
+
],
|
| 548 |
+
inputs=input_image,
|
| 549 |
+
label="🖼️ Sample Images - Click to Try!"
|
| 550 |
+
)
|
| 551 |
+
|
| 552 |
# Process button
|
| 553 |
process_btn = gr.Button(
|
| 554 |
"🚀 Analyze & Process",
|
|
|
|
| 583 |
gr.Markdown("### 📝 Instructions:")
|
| 584 |
gr.Markdown("""
|
| 585 |
1. **Upload an image** that needs restoration (blurry, dark, noisy, etc.)
|
| 586 |
+
2. **Or click on sample images** below to try with pre-loaded examples
|
| 587 |
+
3. **Click 'Analyze & Process'** to let JarvisIR analyze the image
|
| 588 |
+
4. **View the chat** to see JarvisIR's reasoning and recommendations in real-time
|
| 589 |
+
5. **Check the result** - processed image restored to original dimensions
|
| 590 |
""")
|
| 591 |
|
| 592 |
return demo
|