Spaces:
Runtime error
Runtime error
Deploy LaunchLLM - Production AI Training Platform
Browse files- README.md +2 -2
- app.py +4 -3
- financial_advisor_gui.py +2 -2
README.md
CHANGED
|
@@ -4,7 +4,7 @@ emoji: 🚀
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
-
sdk_version:
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
|
@@ -174,4 +174,4 @@ Start by clicking the **Environment** tab above and adding your HuggingFace toke
|
|
| 174 |
|
| 175 |
---
|
| 176 |
|
| 177 |
-
**Built with ❤️ for domain experts who want custom AI without the complexity**
|
|
|
|
| 4 |
colorFrom: blue
|
| 5 |
colorTo: purple
|
| 6 |
sdk: gradio
|
| 7 |
+
sdk_version: 4.0.0
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
|
|
|
| 174 |
|
| 175 |
---
|
| 176 |
|
| 177 |
+
**Built with ❤️ for domain experts who want custom AI without the complexity**
|
app.py
CHANGED
|
@@ -3,8 +3,9 @@ Hugging Face Spaces deployment entry point for AURA AI Training Lab
|
|
| 3 |
This file is automatically used by HF Spaces to launch the application.
|
| 4 |
"""
|
| 5 |
|
| 6 |
-
# Import
|
| 7 |
import financial_advisor_gui
|
| 8 |
|
| 9 |
-
#
|
| 10 |
-
# will automatically
|
|
|
|
|
|
| 3 |
This file is automatically used by HF Spaces to launch the application.
|
| 4 |
"""
|
| 5 |
|
| 6 |
+
# Import the GUI module to get the demo object
|
| 7 |
import financial_advisor_gui
|
| 8 |
|
| 9 |
+
# Get the demo object and launch it
|
| 10 |
+
# HuggingFace Spaces will automatically detect this
|
| 11 |
+
demo = financial_advisor_gui.demo
|
financial_advisor_gui.py
CHANGED
|
@@ -1897,7 +1897,7 @@ Search: "finance", "financial", "investment", "trading\"""",
|
|
| 1897 |
model_choices = model_registry.get_model_choices_for_gui()
|
| 1898 |
model_selector = gr.Dropdown(
|
| 1899 |
choices=model_choices,
|
| 1900 |
-
value=model_choices[0], # Default to first model
|
| 1901 |
label="Select Model",
|
| 1902 |
info="Choose which model to train"
|
| 1903 |
)
|
|
@@ -1987,7 +1987,7 @@ Search: "finance", "financial", "investment", "trading\"""",
|
|
| 1987 |
# Wire up training
|
| 1988 |
start_train_btn.click(
|
| 1989 |
fn=start_training,
|
| 1990 |
-
inputs=[lora_rank, learning_rate, num_epochs, batch_size, grad_accum],
|
| 1991 |
outputs=[training_log, training_status_text]
|
| 1992 |
)
|
| 1993 |
|
|
|
|
| 1897 |
model_choices = model_registry.get_model_choices_for_gui()
|
| 1898 |
model_selector = gr.Dropdown(
|
| 1899 |
choices=model_choices,
|
| 1900 |
+
value=model_choices[0][1] if model_choices else None, # Default to first model ID
|
| 1901 |
label="Select Model",
|
| 1902 |
info="Choose which model to train"
|
| 1903 |
)
|
|
|
|
| 1987 |
# Wire up training
|
| 1988 |
start_train_btn.click(
|
| 1989 |
fn=start_training,
|
| 1990 |
+
inputs=[lora_rank, learning_rate, num_epochs, batch_size, grad_accum, training_mode],
|
| 1991 |
outputs=[training_log, training_status_text]
|
| 1992 |
)
|
| 1993 |
|