Luis Oala commited on
Commit
78cf1f0
1 Parent(s): 6ae556a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -10
app.py CHANGED
@@ -1,14 +1,8 @@
1
  import gradio as gr
2
  from gradio import mix
3
 
4
- title = "GPT2"
5
- description = "Gradio Demo for OpenAI GPT2. To use it, simply add your text, or click one of the examples to load them. Read more at the links below."
6
-
7
- article = "<p style='text-align: center'><a href='https://d4mucfpksywv.cloudfront.net/better-language-models/language_models_are_unsupervised_multitask_learners.pdf' target='_blank'>Language Models are Unsupervised Multitask Learners</a></p>"
8
-
9
- examples = [
10
- ['Paris is the capital of',"gpt2-medium"]
11
- ]
12
 
13
  io1 = gr.Interface.load("huggingface/distilgpt2")
14
 
@@ -36,8 +30,6 @@ gr.Interface(
36
  [gr.inputs.Textbox(label="Input"),gr.inputs.Dropdown(choices=["distilgpt2","gpt2-medium","gpt2-large","gpt2-xl"], type="value", default="gpt2-medium", label="model")
37
  ],
38
  gr.outputs.Textbox(label="Output"),
39
- examples=examples,
40
- article=article,
41
  title=title,
42
  description=description,
43
  cache_examples=True).launch(enable_queue=True)
 
1
  import gradio as gr
2
  from gradio import mix
3
 
4
+ title = "trustworthy artificial intelligence workshop - content generator"
5
+ description = "based on the gpt2 demo interface by <a href='https://huggingface.co/spaces/docs-demos/gpt2/tree/main'>ahsen khaliq</a>"
 
 
 
 
 
 
6
 
7
  io1 = gr.Interface.load("huggingface/distilgpt2")
8
 
 
30
  [gr.inputs.Textbox(label="Input"),gr.inputs.Dropdown(choices=["distilgpt2","gpt2-medium","gpt2-large","gpt2-xl"], type="value", default="gpt2-medium", label="model")
31
  ],
32
  gr.outputs.Textbox(label="Output"),
 
 
33
  title=title,
34
  description=description,
35
  cache_examples=True).launch(enable_queue=True)