Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -13,7 +13,7 @@ import gradio as gr
|
|
13 |
|
14 |
@spaces.GPU
|
15 |
def evaluate_model(input_text):
|
16 |
-
return [model(input_text)[0]['score'] *
|
17 |
|
18 |
# Gradio interface
|
19 |
with gr.Blocks() as demo:
|
|
|
13 |
|
14 |
@spaces.GPU
|
15 |
def evaluate_model(input_text):
|
16 |
+
return [model(input_text)[0]['score'] * 5 if model_name != 'devngho/ko_edu_classifier_v2_nlpai-lab_KoE5' else model('passage: ' + input_text)[0]['score'] * 5 for model_name, model in models.items()]
|
17 |
|
18 |
# Gradio interface
|
19 |
with gr.Blocks() as demo:
|