Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,12 +2,12 @@ import gradio as gr
|
|
| 2 |
import markovify
|
| 3 |
import random
|
| 4 |
|
|
|
|
| 5 |
with open(dataset, encoding="utf-8") as f:
|
| 6 |
db = f.read()
|
| 7 |
db = db.strip().lower()
|
| 8 |
|
| 9 |
def gen(text):
|
| 10 |
-
dataset = "./dataset.txt"
|
| 11 |
|
| 12 |
text_model = markovify.NewlineText(
|
| 13 |
input_text=db,
|
|
|
|
| 2 |
import markovify
|
| 3 |
import random
|
| 4 |
|
| 5 |
+
dataset = "./dataset.txt"
|
| 6 |
with open(dataset, encoding="utf-8") as f:
|
| 7 |
db = f.read()
|
| 8 |
db = db.strip().lower()
|
| 9 |
|
| 10 |
def gen(text):
|
|
|
|
| 11 |
|
| 12 |
text_model = markovify.NewlineText(
|
| 13 |
input_text=db,
|