Spaces:
Runtime error
Runtime error
gorkaartola
commited on
Commit
•
df326b5
1
Parent(s):
6bbf43b
Delete app.py
Browse files
app.py
DELETED
@@ -1,31 +0,0 @@
|
|
1 |
-
'''
|
2 |
-
model_selector = '0'
|
3 |
-
queries_selector = '0'
|
4 |
-
prompt_selector = '0'
|
5 |
-
metric_selector = '0'
|
6 |
-
prediction_strategy_selector = ['1','2.0','2.1','2.2','2.3','3.0','3.1','3.2','3.3']
|
7 |
-
'''
|
8 |
-
|
9 |
-
import gradio as gr
|
10 |
-
import run
|
11 |
-
import options as op
|
12 |
-
|
13 |
-
#from evaluate.utils.logging import get_logger
|
14 |
-
#logger = get_logger(__name__)
|
15 |
-
|
16 |
-
iface = gr.Interface(
|
17 |
-
run.tp_tf_test,
|
18 |
-
[
|
19 |
-
gr.Radio(list(op.models.keys())),
|
20 |
-
gr.Radio(list(op.queries.keys())),
|
21 |
-
gr.Radio(list(op.prompts.keys())),
|
22 |
-
gr.Radio(list(op.metrics.keys())),
|
23 |
-
gr.CheckboxGroup(list(op.prediction_strategy_options.keys())),
|
24 |
-
],
|
25 |
-
#"text",
|
26 |
-
gr.File(),
|
27 |
-
title="Classification by SDGs",
|
28 |
-
description="Zero Shot Classification by SDG over test dataset",
|
29 |
-
)
|
30 |
-
|
31 |
-
iface.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|