Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -101,9 +101,7 @@ def predict(text):
|
|
| 101 |
return f"# {pred_label}", badge_html, class_probs
|
| 102 |
|
| 103 |
# --- 5. UI LAYOUT (gr.Blocks) ---
|
| 104 |
-
|
| 105 |
-
# If it fails, remove theme=gr.themes.Soft()
|
| 106 |
-
with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
| 107 |
|
| 108 |
gr.Markdown("# 📰 NLP News Classifier")
|
| 109 |
gr.Markdown("Classify news articles into World, Sports, Business, or Sci/Tech using DistilBERT + LoRA.")
|
|
|
|
| 101 |
return f"# {pred_label}", badge_html, class_probs
|
| 102 |
|
| 103 |
# --- 5. UI LAYOUT (gr.Blocks) ---
|
| 104 |
+
with gr.Blocks() as demo:
|
|
|
|
|
|
|
| 105 |
|
| 106 |
gr.Markdown("# 📰 NLP News Classifier")
|
| 107 |
gr.Markdown("Classify news articles into World, Sports, Business, or Sci/Tech using DistilBERT + LoRA.")
|