heerjtdev commited on
Commit
9d19c07
ยท
verified ยท
1 Parent(s): e93aa88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -274,7 +274,10 @@ 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 using MLP instead of Linear Classifier", theme="soft") as demo:
 
 
 
278
  gr.Markdown("# ๐Ÿš€ LayoutLMv3 Fine-Tuning on Hugging Face Spaces")
279
  gr.Markdown(
280
  """
 
274
 
275
 
276
  # --- Gradio Interface Setup (using Blocks for a nicer layout) ---
277
+ # Removing title and theme from here prevents the __init__ crash
278
+ with gr.Blocks() as demo:
279
+ gr.Markdown("# ๐Ÿš€ LayoutLMv3 Fine-Tuning: MLP vs Linear Classifier")
280
+ gr.Markdown("### Training App by Aastik")
281
  gr.Markdown("# ๐Ÿš€ LayoutLMv3 Fine-Tuning on Hugging Face Spaces")
282
  gr.Markdown(
283
  """