thobuiq commited on
Commit
ed678a4
1 Parent(s): c5fb076

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +21 -1
app.py CHANGED
@@ -1,3 +1,23 @@
 
 
 
1
  import gradio as gr
2
 
3
- gr.load("models/mistralai/Mistral-7B-v0.1").launch()
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #import gradio as gr
2
+
3
+ #gr.load("models/mistralai/Mistral-7B-v0.1").launch()
4
  import gradio as gr
5
 
6
+ title = "gpt2-xl"
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
+ "huggingface/gpt2-xl",
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()
23
+