Spaces:
Runtime error
Runtime error
Wiktor Kolodziej
commited on
Commit
·
50867bf
1
Parent(s):
8621c14
gpt-j demo
Browse files
app.py
CHANGED
@@ -4,21 +4,6 @@ import gradio as gr
|
|
4 |
def update(name):
|
5 |
return f"Welcome to Gradio, {name}!"
|
6 |
|
7 |
-
demo = gr.Blocks()
|
8 |
|
9 |
-
|
10 |
-
gr.Markdown(
|
11 |
-
"""
|
12 |
-
# Hello World!
|
13 |
-
Start typing below to see the output.
|
14 |
-
""")
|
15 |
-
inp = gr.Textbox(placeholder="What is your name?")
|
16 |
-
out = gr.Textbox()
|
17 |
|
18 |
-
inp.change(fn=update,
|
19 |
-
inputs=inp,
|
20 |
-
outputs=out)
|
21 |
-
|
22 |
-
gr.Image("lion.jpg").style(height=54, width=240)
|
23 |
-
|
24 |
-
demo.launch()
|
|
|
4 |
def update(name):
|
5 |
return f"Welcome to Gradio, {name}!"
|
6 |
|
|
|
7 |
|
8 |
+
gr.Interface.load('huggingface/EleutherAI/gpt-j-6B').launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|