Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -2,10 +2,9 @@ import subprocess
|
|
2 |
subprocess.run(["pip", "install", "./textgen.zip"])
|
3 |
|
4 |
import gradio as gr
|
5 |
-
from textgen import
|
6 |
|
7 |
-
textgen =
|
8 |
-
textgen.load("textgen.bin")
|
9 |
|
10 |
def generate(text, length=50):
|
11 |
return textgen.generate(text, length=length)
|
|
|
2 |
subprocess.run(["pip", "install", "./textgen.zip"])
|
3 |
|
4 |
import gradio as gr
|
5 |
+
from textgen import load
|
6 |
|
7 |
+
textgen = load()
|
|
|
8 |
|
9 |
def generate(text, length=50):
|
10 |
return textgen.generate(text, length=length)
|