d3finit commited on
Commit
877c452
1 Parent(s): 2b00d26

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -5,9 +5,9 @@ description = "NLP using various transformer models to capture energy usage."
5
  article="Coming soon"
6
 
7
  examples = [
8
- ["The Moon's orbit around the Earth has"],
9
- ['The tower is 342 meters (1,063 ft) tall,'],
10
- ['The smooth Borealis basin in the Northern Hemisphere covers 40%']
11
  ]
12
 
13
  gpt2 = gr.Interface.load("huggingface/gpt2-large")
@@ -19,4 +19,4 @@ def fn(model_choice, input):
19
  elif model_choice=="gpt-j-6B":
20
  return gptj6B(input)
21
 
22
- gr.Interface(fn, [gr.inputs.Dropdown("gpt2", "gpt-j-6B"), "text"], "text", title=title, description=description, article=article).launch()
 
5
  article="Coming soon"
6
 
7
  examples = [
8
+ ["The Moon's orbit around the Earth has"],
9
+ ['The tower is 342 meters (1,063 ft) tall,'],
10
+ ['The smooth Borealis basin in the Northern Hemisphere covers 40%']
11
  ]
12
 
13
  gpt2 = gr.Interface.load("huggingface/gpt2-large")
 
19
  elif model_choice=="gpt-j-6B":
20
  return gptj6B(input)
21
 
22
+ gr.Interface(fn, [gr.inputs.Dropdown(["gpt2", "gpt-j-6B"]), "text"], "text", title=title, description=description, article=article).launch()