Update app.py
Browse files
app.py
CHANGED
|
@@ -14,7 +14,10 @@ import gradio as gr
|
|
| 14 |
from dotenv import load_dotenv
|
| 15 |
import spaces
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
| 18 |
|
| 19 |
class GradioProgressCallback(TrainerCallback):
|
| 20 |
def __init__(self, progress_bar):
|
|
@@ -236,7 +239,8 @@ h1 {text-align: center; color: #00e5ff; font-family: 'Segoe UI', Tahoma, Geneva,
|
|
| 236 |
label {color: #00e5ff !important; font-weight: bold;}
|
| 237 |
"""
|
| 238 |
|
| 239 |
-
with gr.Blocks(
|
|
|
|
| 240 |
gr.HTML("""
|
| 241 |
<div style="text-align: center; margin-bottom: 20px;">
|
| 242 |
<h1 style="margin: 0;">⚡ INFINITE LLM TRAINER ⚡</h1>
|
|
|
|
| 14 |
from dotenv import load_dotenv
|
| 15 |
import spaces
|
| 16 |
|
| 17 |
+
try:
|
| 18 |
+
load_dotenv()
|
| 19 |
+
except:
|
| 20 |
+
pass
|
| 21 |
|
| 22 |
class GradioProgressCallback(TrainerCallback):
|
| 23 |
def __init__(self, progress_bar):
|
|
|
|
| 239 |
label {color: #00e5ff !important; font-weight: bold;}
|
| 240 |
"""
|
| 241 |
|
| 242 |
+
with gr.Blocks(title="Entrenador LLM Ultimate") as demo:
|
| 243 |
+
gr.HTML(f"<style>{custom_css}</style>")
|
| 244 |
gr.HTML("""
|
| 245 |
<div style="text-align: center; margin-bottom: 20px;">
|
| 246 |
<h1 style="margin: 0;">⚡ INFINITE LLM TRAINER ⚡</h1>
|