Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
| 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,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
|
| 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)
|