Xhaheen commited on
Commit
6a2f664
1 Parent(s): e2bdf5f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -21,11 +21,14 @@ def happytt(temperature,max_tokens,text):
21
 
22
  return response.choices[0].text
23
 
24
-
 
 
 
25
 
26
 
27
  iface = gr.Interface( happytt,[ gr.inputs.Slider(0, 1, step=0.1),gr.inputs.Slider(1, 4000, step=1),
28
  gr.inputs.Textbox(type='str',
29
- label="input prompt")],
30
  "text")
31
  iface.launch(debug=True)
 
21
 
22
  return response.choices[0].text
23
 
24
+
25
+ title = "GPT-J-6B"
26
+ description = "Gradio Demo for GPT-J 6B, a transformer model trained using Ben Wang's Mesh Transformer JAX. 'GPT-J' refers to the class of model, while '6B' represents the number of trainable parameters. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
27
+
28
 
29
 
30
  iface = gr.Interface( happytt,[ gr.inputs.Slider(0, 1, step=0.1),gr.inputs.Slider(1, 4000, step=1),
31
  gr.inputs.Textbox(type='str',
32
+ label="input prompt")], title = title, description = description,
33
  "text")
34
  iface.launch(debug=True)