Spaces:
Runtime error
Runtime error
Commit
·
c59a0f2
1
Parent(s):
41810b5
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,22 +1,22 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
|
| 3 |
-
|
| 4 |
|
| 5 |
-
model = "models/EleutherAI/gpt-neo-1.3B"
|
| 6 |
-
title = "EleutherAI/gpt-neo-1.3B"
|
| 7 |
|
| 8 |
-
examples = [
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
]
|
| 13 |
|
| 14 |
-
demo = gr.load(
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
| 19 |
-
)
|
| 20 |
|
| 21 |
-
if __name__ == "__main__":
|
| 22 |
-
|
|
|
|
| 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.Interface.load(
|
| 15 |
+
# model,
|
| 16 |
+
# inputs=gr.Textbox(lines=5, max_lines=10, label="Input Text"),
|
| 17 |
+
# title=title,
|
| 18 |
+
# examples=examples,
|
| 19 |
+
# )
|
| 20 |
|
| 21 |
+
# if __name__ == "__main__":
|
| 22 |
+
# demo.launch()
|