cutiee82 commited on
Commit
a1bc5b4
·
1 Parent(s): 070f252

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
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 TextGenerator
6
 
7
- textgen = TextGenerator()
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)