Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -41,7 +41,7 @@ def retrieve_model():
|
|
| 41 |
|
| 42 |
log_output = (
|
| 43 |
f"--- Model Status Check: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} ---\n"
|
| 44 |
-
f"π SUCCESS! A trained model was found and recovered.
|
| 45 |
f"π¦ Model file: {MODEL_FILE_PATH}\n"
|
| 46 |
f"π Model size: {file_size:.2f} MB\n"
|
| 47 |
f"π Download path prepared: {download_path}\n\n"
|
|
@@ -274,7 +274,7 @@ def train_model(dataset_file: gr.File, batch_size: int, epochs: int, lr: float,
|
|
| 274 |
|
| 275 |
|
| 276 |
# --- Gradio Interface Setup (using Blocks for a nicer layout) ---
|
| 277 |
-
with gr.Blocks(title="LayoutLMv3 Fine-Tuning
|
| 278 |
gr.Markdown("# π LayoutLMv3 Fine-Tuning on Hugging Face Spaces")
|
| 279 |
gr.Markdown(
|
| 280 |
"""
|
|
|
|
| 41 |
|
| 42 |
log_output = (
|
| 43 |
f"--- Model Status Check: {datetime.now().strftime('%Y-%m-%d %H:%M:%S')} ---\n"
|
| 44 |
+
f"π SUCCESS! A trained model was found and recovered. AASTIK MERA NAAM\n"
|
| 45 |
f"π¦ Model file: {MODEL_FILE_PATH}\n"
|
| 46 |
f"π Model size: {file_size:.2f} MB\n"
|
| 47 |
f"π Download path prepared: {download_path}\n\n"
|
|
|
|
| 274 |
|
| 275 |
|
| 276 |
# --- Gradio Interface Setup (using Blocks for a nicer layout) ---
|
| 277 |
+
with gr.Blocks(title="LayoutLMv3 Fine-Tuning using MLP instead of Linear Classifier", theme="soft") as demo:
|
| 278 |
gr.Markdown("# π LayoutLMv3 Fine-Tuning on Hugging Face Spaces")
|
| 279 |
gr.Markdown(
|
| 280 |
"""
|