Spaces:
Sleeping
Sleeping
EMMA commited on
Commit ·
db4d521
1
Parent(s): 513f5f1
update code
Browse files
app.py
CHANGED
|
@@ -738,27 +738,27 @@ body:has(.progress-level)::before {
|
|
| 738 |
system_msg = gr.Textbox(label="🔔 System Messages", interactive=False, max_lines=2)
|
| 739 |
|
| 740 |
# === ابزار بنچمارک توکنها ===
|
| 741 |
-
with gr.Accordion("Developer / Benchmark Tools", open=False):
|
| 742 |
-
btn_run = gr.Button("Run Token Efficiency Benchmark")
|
| 743 |
-
output_text = gr.Markdown()
|
| 744 |
|
| 745 |
-
def _trigger_benchmark():
|
| 746 |
-
from benchmark_token_efficiency import run_benchmark
|
| 747 |
|
| 748 |
# لیست پرسشهای ارزیابی بنچمارک
|
| 749 |
-
queries = [
|
| 750 |
-
"I've been feeling extremely anxious about my upcoming exams.",
|
| 751 |
-
"Do you remember what we talked about regarding my childhood dog?",
|
| 752 |
-
|
| 753 |
-
"I had a fight with my partner yesterday and felt so alone.",
|
| 754 |
-
|
| 755 |
-
|
| 756 |
-
|
| 757 |
-
]
|
| 758 |
|
| 759 |
-
return run_benchmark(test_queries=queries)
|
| 760 |
|
| 761 |
-
btn_run.click(fn=_trigger_benchmark, outputs=output_text)
|
| 762 |
|
| 763 |
# ============================
|
| 764 |
|
|
|
|
| 738 |
system_msg = gr.Textbox(label="🔔 System Messages", interactive=False, max_lines=2)
|
| 739 |
|
| 740 |
# === ابزار بنچمارک توکنها ===
|
| 741 |
+
#with gr.Accordion("Developer / Benchmark Tools", open=False):
|
| 742 |
+
#btn_run = gr.Button("Run Token Efficiency Benchmark")
|
| 743 |
+
#output_text = gr.Markdown()
|
| 744 |
|
| 745 |
+
#def _trigger_benchmark():
|
| 746 |
+
#from benchmark_token_efficiency import run_benchmark
|
| 747 |
|
| 748 |
# لیست پرسشهای ارزیابی بنچمارک
|
| 749 |
+
#queries = [
|
| 750 |
+
#"I've been feeling extremely anxious about my upcoming exams.",
|
| 751 |
+
#"Do you remember what we talked about regarding my childhood dog?",
|
| 752 |
+
# "How can I practice progressive muscle relaxation?",
|
| 753 |
+
#"I had a fight with my partner yesterday and felt so alone.",
|
| 754 |
+
# "What was my favorite coping strategy we discussed earlier?",
|
| 755 |
+
# "Can you explain cognitive distortions with examples?",
|
| 756 |
+
# "I feel overwhelmed with work pressure this week."
|
| 757 |
+
#]
|
| 758 |
|
| 759 |
+
#return run_benchmark(test_queries=queries)
|
| 760 |
|
| 761 |
+
#btn_run.click(fn=_trigger_benchmark, outputs=output_text)
|
| 762 |
|
| 763 |
# ============================
|
| 764 |
|