revert
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ import gradio as gr
|
|
5 |
models_id = [
|
6 |
"PORTULAN/albertina-ptpt",
|
7 |
"PORTULAN/albertina-ptbr",
|
8 |
-
"EleutherAI/gpt-j-6B"
|
9 |
]
|
10 |
models = list(map(lambda x: gr.load(x, src='huggingface'),models_id))
|
11 |
examples = [
|
@@ -25,4 +25,4 @@ def prediction(model_choice, input):
|
|
25 |
|
26 |
label = gr.Label(num_top_classes=1)
|
27 |
|
28 |
-
gr.Interface(fn=prediction,
|
|
|
5 |
models_id = [
|
6 |
"PORTULAN/albertina-ptpt",
|
7 |
"PORTULAN/albertina-ptbr",
|
8 |
+
# "EleutherAI/gpt-j-6B"
|
9 |
]
|
10 |
models = list(map(lambda x: gr.load(x, src='huggingface'),models_id))
|
11 |
examples = [
|
|
|
25 |
|
26 |
label = gr.Label(num_top_classes=1)
|
27 |
|
28 |
+
gr.Interface(fn=prediction, inputs=[ gr.Dropdown(models_id, type="index",value=models_id[0]),gr.Textbox(),], outputs=label, examples=examples).launch()
|