lemms commited on
Commit
dbecf17
Β·
verified Β·
1 Parent(s): 3c61828

Update to Gradio 4.44.1 with complete training implementation

Browse files
Files changed (1) hide show
  1. app.py +10 -8
app.py CHANGED
@@ -1,14 +1,14 @@
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
 
@@ -293,13 +293,13 @@ def main():
293
 
294
  # Create the main Gradio application interface
295
  with gr.Blocks(
296
- title="OpenLLM Training Space - Complete",
297
  theme=gr.themes.Soft()
298
  ) as demo:
299
 
300
  # Application Header
301
  gr.Markdown("# πŸš€ OpenLLM Training Space - Complete Implementation")
302
- gr.Markdown("### *Real Model Training Interface*")
303
  gr.Markdown("---")
304
 
305
  # Main Content Area
@@ -355,10 +355,11 @@ def main():
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
@@ -369,7 +370,7 @@ def main():
369
  # Instructions Section
370
  gr.Markdown("## πŸ“‹ Complete Training Instructions")
371
  gr.Markdown("""
372
- This interface provides **real model training** functionality:
373
 
374
  ### **Step 1: Configure Parameters**
375
  - **Model Size**: Select the base model to train from (7k models)
@@ -468,6 +469,7 @@ def main():
468
  gr.Markdown("---")
469
  gr.Markdown("**Author**: Louis Chua Bean Chong | **Project**: OpenLLM | **License**: GPL-3.0")
470
  gr.Markdown(f"**Training Available**: {'βœ… Yes' if TRAINING_AVAILABLE else '❌ No'}")
 
471
 
472
  return demo
473
 
 
1
  #!/usr/bin/env python3
2
  """
3
+ OpenLLM Training Space Application - Gradio 4.44.1 Compatible
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. Updated for Gradio 4.44.1 compatibility.
8
 
9
  Author: Louis Chua Bean Chong
10
  License: GPL-3.0
11
+ Version: 2.0.2
12
  Last Updated: 2024
13
  """
14
 
 
293
 
294
  # Create the main Gradio application interface
295
  with gr.Blocks(
296
+ title="OpenLLM Training Space - Gradio 4.44.1",
297
  theme=gr.themes.Soft()
298
  ) as demo:
299
 
300
  # Application Header
301
  gr.Markdown("# πŸš€ OpenLLM Training Space - Complete Implementation")
302
+ gr.Markdown("### *Real Model Training Interface - Gradio 4.44.1*")
303
  gr.Markdown("---")
304
 
305
  # Main Content Area
 
355
  lines=5
356
  )
357
 
358
+ # Progress Information - Updated for Gradio 4.44.1 compatibility
359
  progress_info = gr.JSON(
360
  value=trainer.get_training_progress(),
361
+ label="Training Progress",
362
+ interactive=False # Now supported in Gradio 4.44.1
363
  )
364
 
365
  # Training Control Buttons
 
370
  # Instructions Section
371
  gr.Markdown("## πŸ“‹ Complete Training Instructions")
372
  gr.Markdown("""
373
+ This interface provides **real model training** functionality with Gradio 4.44.1:
374
 
375
  ### **Step 1: Configure Parameters**
376
  - **Model Size**: Select the base model to train from (7k models)
 
469
  gr.Markdown("---")
470
  gr.Markdown("**Author**: Louis Chua Bean Chong | **Project**: OpenLLM | **License**: GPL-3.0")
471
  gr.Markdown(f"**Training Available**: {'βœ… Yes' if TRAINING_AVAILABLE else '❌ No'}")
472
+ gr.Markdown("**Gradio Version**: 4.44.1")
473
 
474
  return demo
475