ecaridade commited on
Commit
cf39375
1 Parent(s): f2fe19d
Files changed (1) hide show
  1. app.py +2 -2
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, enable_queue=True, inputs=[ gr.Dropdown(models_id, type="index",value=models_id[0]),gr.Textbox(),], outputs=label, examples=examples).launch()
 
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()