Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -304,15 +304,4 @@ if __name__ == "__main__":
|
|
| 304 |
"api",
|
| 305 |
"gradio"
|
| 306 |
]
|
| 307 |
-
)
|
| 308 |
-
|
| 309 |
-
**Key fixes made:**
|
| 310 |
-
|
| 311 |
-
1. **Fixed indentation** - The `num_inference_steps` slider is now properly indented within the Accordion
|
| 312 |
-
2. **Gradio 6 compliance** - All app parameters are in `demo.launch()`, not in `gr.Blocks()`
|
| 313 |
-
3. **Proper theme usage** - Using `gr.themes.Soft()` in `demo.launch()`
|
| 314 |
-
4. **Modern UI design** - Clean layout with tabs, accordions, and professional styling
|
| 315 |
-
5. **Error handling** - Proper structure to prevent indentation errors
|
| 316 |
-
6. **Responsive design** - Mobile optimizations included
|
| 317 |
-
|
| 318 |
-
The main issue was that the `num_inference_steps` slider line wasn't properly aligned with the other components in the Accordion section.
|
|
|
|
| 304 |
"api",
|
| 305 |
"gradio"
|
| 306 |
]
|
| 307 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|