sahrulrashid commited on
Commit
8546f4b
·
verified ·
1 Parent(s): fa08d8e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -7
app.py CHANGED
@@ -1,9 +1,3 @@
1
- #display a text
2
  import gradio as gr
3
 
4
- def text_display(text):
5
- return text
6
-
7
- demo = gr.Interface("huggingface/EleutherAI/gpt-j-6B", inputs=gr.Textbox(lines=5, label="Input Text"), "text")
8
- #alternatively use gr.TextBox()
9
- demo.launch()
 
 
1
  import gradio as gr
2
 
3
+ gr.Interface.load("huggingface/gpt2").launch();