Spaces:
Sleeping
Sleeping
Ajaykanth Maddi commited on
Commit ·
804e3c8
1
Parent(s): 29793ae
Code Changes - Advanced Options
Browse files
app.py
CHANGED
|
@@ -54,6 +54,8 @@ ENTRIES = 'entries'
|
|
| 54 |
QUESTIONS = 'questions'
|
| 55 |
|
| 56 |
ragbench_details = {}
|
|
|
|
|
|
|
| 57 |
|
| 58 |
import os
|
| 59 |
print(os.listdir("data")) # Check if the file is there
|
|
@@ -376,13 +378,14 @@ with gr.Blocks(
|
|
| 376 |
with gr.Column(scale=2):
|
| 377 |
# Collapsible advanced options
|
| 378 |
with gr.Accordion("Advanced Options", open=False): # Starts collapsed
|
| 379 |
-
noOfQuestions = gr.Slider(minimum=1, maximum=
|
| 380 |
value=5, # Default value
|
| 381 |
step=1, label="Number of Questions to Evaluate")
|
| 382 |
-
|
| 383 |
-
|
| 384 |
-
|
| 385 |
-
|
|
|
|
| 386 |
generate_btn = gr.Button("Generate JSON & Download")
|
| 387 |
with gr.Column(scale=2):
|
| 388 |
json_output = gr.Code(label="JSON Output", max_lines=50, language="json")
|
|
|
|
| 54 |
QUESTIONS = 'questions'
|
| 55 |
|
| 56 |
ragbench_details = {}
|
| 57 |
+
advanced_analysis = {}
|
| 58 |
+
|
| 59 |
|
| 60 |
import os
|
| 61 |
print(os.listdir("data")) # Check if the file is there
|
|
|
|
| 378 |
with gr.Column(scale=2):
|
| 379 |
# Collapsible advanced options
|
| 380 |
with gr.Accordion("Advanced Options", open=False): # Starts collapsed
|
| 381 |
+
noOfQuestions = gr.Slider(minimum=1, maximum=50,
|
| 382 |
value=5, # Default value
|
| 383 |
step=1, label="Number of Questions to Evaluate")
|
| 384 |
+
|
| 385 |
+
btnLabel = f"🚀 Run RAG Evaluation for {noOfQuestions} Questions"
|
| 386 |
+
evaluate_btn = gr.Button(btnLabel, variant="primary")
|
| 387 |
+
|
| 388 |
+
|
| 389 |
generate_btn = gr.Button("Generate JSON & Download")
|
| 390 |
with gr.Column(scale=2):
|
| 391 |
json_output = gr.Code(label="JSON Output", max_lines=50, language="json")
|