File size: 561 Bytes
a0526aa
 
c59a0f2
41810b5
c59a0f2
 
41810b5
c59a0f2
 
 
 
 
41810b5
c59a0f2
 
 
 
 
 
41810b5
c59a0f2
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import gradio as gr

gr.Interface.load("models/EleutherAI/gpt-neo-1.3B").launch()

# model = "models/EleutherAI/gpt-neo-1.3B"
# title = "EleutherAI/gpt-neo-1.3B"

# examples = [
#     ["The tower is 324 metres (1,063 ft) tall,"],
#     ["The Moon's orbit around Earth has"],
#     ["The smooth Borealis basin in the Northern Hemisphere covers 40%"],
# ]

# demo = gr.Interface.load(
#     model,
#     inputs=gr.Textbox(lines=5, max_lines=10, label="Input Text"),
#     title=title,
#     examples=examples,
# )

# if __name__ == "__main__":
#     demo.launch()