sahrulrashid commited on
Commit
c7248e3
·
verified ·
1 Parent(s): 1cbb88d

Update app.py

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