Spaces:
Runtime error
Runtime error
SujanMidatani
commited on
Commit
•
5fa769b
1
Parent(s):
9243bfc
update app.py
Browse files
app.py
CHANGED
@@ -46,10 +46,10 @@ def indiQuesGrade(question, answer, role, exp):
|
|
46 |
{{gen 'evaluation' temperature=0.5 max_token=1500}}
|
47 |
{{~/assistant}}
|
48 |
''', llm = evaluatorModel)
|
49 |
-
return evaluationSys
|
50 |
k=gr.Interface(
|
51 |
fn=indiQuesGrade,
|
52 |
inputs=['text','text','text','text'],
|
53 |
-
outputs=['json']
|
54 |
)
|
55 |
k.launch()
|
|
|
46 |
{{gen 'evaluation' temperature=0.5 max_token=1500}}
|
47 |
{{~/assistant}}
|
48 |
''', llm = evaluatorModel)
|
49 |
+
return evaluationSys['evaluation'], evaluationSys['grading_measures']
|
50 |
k=gr.Interface(
|
51 |
fn=indiQuesGrade,
|
52 |
inputs=['text','text','text','text'],
|
53 |
+
outputs=['json', 'text']
|
54 |
)
|
55 |
k.launch()
|