picocreator commited on
Commit
41810b5
·
1 Parent(s): 69c97e8

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +20 -1
app.py CHANGED
@@ -1,3 +1,22 @@
1
  import gradio as gr
2
 
3
- gr.Interface.load("models/EleutherAI/gpt-neo-1.3B").launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import gradio as gr
2
 
3
+ # gr.Interface.load("models/EleutherAI/gpt-neo-1.3B").launch()
4
+
5
+ model = "models/EleutherAI/gpt-neo-1.3B"
6
+ title = "EleutherAI/gpt-neo-1.3B"
7
+
8
+ examples = [
9
+ ["The tower is 324 metres (1,063 ft) tall,"],
10
+ ["The Moon's orbit around Earth has"],
11
+ ["The smooth Borealis basin in the Northern Hemisphere covers 40%"],
12
+ ]
13
+
14
+ demo = gr.load(
15
+ model,
16
+ inputs=gr.Textbox(lines=5, max_lines=6, label="Input Text"),
17
+ title=title,
18
+ examples=examples,
19
+ )
20
+
21
+ if __name__ == "__main__":
22
+ demo.launch()