Spaces:
Sleeping
Sleeping
Ouz
commited on
Commit
·
e333fa4
1
Parent(s):
8628f17
update
Browse files
app.py
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
from root import RootSignals
|
3 |
|
4 |
-
client = None
|
5 |
-
custom_judge = None
|
6 |
|
7 |
def initialize_client(api_key):
|
8 |
global client
|
@@ -25,7 +25,7 @@ def create_judge(api_key, judge_name, intent, judge_prompt):
|
|
25 |
eval_section.visible = True
|
26 |
results_section.visible = True
|
27 |
evaluate_btn.visible = True
|
28 |
-
return gr.Info("Custom LLM-Judge is created successfully!")
|
29 |
|
30 |
def evaluate_response(llm_response):
|
31 |
global client, custom_judge
|
|
|
1 |
import gradio as gr
|
2 |
from root import RootSignals
|
3 |
|
4 |
+
client = None
|
5 |
+
custom_judge = None
|
6 |
|
7 |
def initialize_client(api_key):
|
8 |
global client
|
|
|
25 |
eval_section.visible = True
|
26 |
results_section.visible = True
|
27 |
evaluate_btn.visible = True
|
28 |
+
return gr.Info(f"Custom LLM-Judge {judge_name} is created successfully!")
|
29 |
|
30 |
def evaluate_response(llm_response):
|
31 |
global client, custom_judge
|