Spaces:
Sleeping
Sleeping
Ouz
commited on
Commit
·
c9440d5
1
Parent(s):
e333fa4
first working version
Browse files
app.py
CHANGED
|
@@ -69,14 +69,14 @@ with gr.Blocks(theme=gr.themes.Default(primary_hue="blue")) as demo:
|
|
| 69 |
info_message = gr.Info()
|
| 70 |
|
| 71 |
# Evaluation section (initially hidden)
|
| 72 |
-
eval_section = gr.Column(visible=
|
| 73 |
with eval_section:
|
| 74 |
gr.Markdown("### Evaluate Response")
|
| 75 |
llm_response = gr.Textbox(label="🤖 LLM Response", placeholder="Enter the LLM response to be evaluated...", interactive=True)
|
| 76 |
-
evaluate_btn = gr.Button("🧐 EVALUATE", variant="primary", visible=
|
| 77 |
|
| 78 |
# Right column - Results
|
| 79 |
-
results_section = gr.Column(visible=
|
| 80 |
with results_section:
|
| 81 |
score = gr.Textbox(label="📊 Score (between 0 and 1)", interactive=False)
|
| 82 |
justification = gr.TextArea(label="💬 Justification", interactive=False)
|
|
|
|
| 69 |
info_message = gr.Info()
|
| 70 |
|
| 71 |
# Evaluation section (initially hidden)
|
| 72 |
+
eval_section = gr.Column(visible=True)
|
| 73 |
with eval_section:
|
| 74 |
gr.Markdown("### Evaluate Response")
|
| 75 |
llm_response = gr.Textbox(label="🤖 LLM Response", placeholder="Enter the LLM response to be evaluated...", interactive=True)
|
| 76 |
+
evaluate_btn = gr.Button("🧐 EVALUATE", variant="primary", visible=True)
|
| 77 |
|
| 78 |
# Right column - Results
|
| 79 |
+
results_section = gr.Column(visible=True)
|
| 80 |
with results_section:
|
| 81 |
score = gr.Textbox(label="📊 Score (between 0 and 1)", interactive=False)
|
| 82 |
justification = gr.TextArea(label="💬 Justification", interactive=False)
|