heerjtdev commited on
Commit
e93aa88
Β·
verified Β·
1 Parent(s): 71f8b27

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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. Boobs! 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,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 App by Aastik", theme=gr.themes.Soft()) as demo:
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
  """