farwew commited on
Commit
e118a81
·
verified ·
1 Parent(s): fa00afe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -55,8 +55,8 @@ def predict(text: str, normalize: bool = True):
55
 
56
  # === Gradio UI ===
57
  with gr.Blocks() as demo:
58
- gr.Markdown("# Essay Scoring Demo (Embedding + XGBoost)")
59
- gr.Markdown("Masukkan teks → preprocessing (pakai NLTK stopwords) → embedding → prediksi skor.")
60
 
61
  with gr.Row():
62
  text_in = gr.Textbox(label="Input Kalimat / Essay", placeholder="Tulis di sini...", lines=5)
@@ -64,7 +64,7 @@ with gr.Blocks() as demo:
64
  btn = gr.Button("Prediksi", variant="primary")
65
 
66
  with gr.Row():
67
- pred_out = gr.JSON(label="Prediksi Skor (XGBoost)")
68
  with gr.Row():
69
  vec_out = gr.JSON(label="Embedding Vector (list of floats)")
70
  dim_out = gr.Number(label="Dimensi vektor", interactive=False)
 
55
 
56
  # === Gradio UI ===
57
  with gr.Blocks() as demo:
58
+ gr.Markdown("# Essay Scoring Demo")
59
+ gr.Markdown("Masukkan teks")
60
 
61
  with gr.Row():
62
  text_in = gr.Textbox(label="Input Kalimat / Essay", placeholder="Tulis di sini...", lines=5)
 
64
  btn = gr.Button("Prediksi", variant="primary")
65
 
66
  with gr.Row():
67
+ pred_out = gr.JSON(label="Prediksi Skor")
68
  with gr.Row():
69
  vec_out = gr.JSON(label="Embedding Vector (list of floats)")
70
  dim_out = gr.Number(label="Dimensi vektor", interactive=False)