Fix Gradio 4.44.0 compatibility - remove interactive parameter from gr.JSON
Browse files
app.py
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
"""
|
| 3 |
-
OpenLLM Training Space Application -
|
| 4 |
|
| 5 |
This is a complete Gradio application that provides actual model training functionality
|
| 6 |
for OpenLLM models. It loads the 7k model, trains it for additional steps, and pushes
|
| 7 |
-
the results to Hugging Face Hub.
|
| 8 |
|
| 9 |
Author: Louis Chua Bean Chong
|
| 10 |
License: GPL-3.0
|
| 11 |
-
Version: 2.0.
|
| 12 |
Last Updated: 2024
|
| 13 |
"""
|
| 14 |
|
|
@@ -355,11 +355,10 @@ def main():
|
|
| 355 |
lines=5
|
| 356 |
)
|
| 357 |
|
| 358 |
-
# Progress Information
|
| 359 |
progress_info = gr.JSON(
|
| 360 |
value=trainer.get_training_progress(),
|
| 361 |
-
label="Training Progress"
|
| 362 |
-
interactive=False
|
| 363 |
)
|
| 364 |
|
| 365 |
# Training Control Buttons
|
|
|
|
| 1 |
#!/usr/bin/env python3
|
| 2 |
"""
|
| 3 |
+
OpenLLM Training Space Application - Fixed Implementation
|
| 4 |
|
| 5 |
This is a complete Gradio application that provides actual model training functionality
|
| 6 |
for OpenLLM models. It loads the 7k model, trains it for additional steps, and pushes
|
| 7 |
+
the results to Hugging Face Hub. Fixed for Gradio 4.44.0 compatibility.
|
| 8 |
|
| 9 |
Author: Louis Chua Bean Chong
|
| 10 |
License: GPL-3.0
|
| 11 |
+
Version: 2.0.1
|
| 12 |
Last Updated: 2024
|
| 13 |
"""
|
| 14 |
|
|
|
|
| 355 |
lines=5
|
| 356 |
)
|
| 357 |
|
| 358 |
+
# Progress Information - Fixed for Gradio 4.44.0 compatibility
|
| 359 |
progress_info = gr.JSON(
|
| 360 |
value=trainer.get_training_progress(),
|
| 361 |
+
label="Training Progress"
|
|
|
|
| 362 |
)
|
| 363 |
|
| 364 |
# Training Control Buttons
|