Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,10 @@
|
|
| 1 |
import chess
|
| 2 |
import random
|
| 3 |
import streamlit as st
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
def cleanup_output(text, prompt, extra_len):
|
| 6 |
section = text[len(prompt):]
|
|
|
|
| 1 |
import chess
|
| 2 |
import random
|
| 3 |
import streamlit as st
|
| 4 |
+
from transformers import pipeline
|
| 5 |
+
|
| 6 |
+
generator2 = pipeline('text-generation', model='BlueSunflower/gpt2-medium-chess')
|
| 7 |
+
generator = pipeline('text-generation', model='gpt2')
|
| 8 |
|
| 9 |
def cleanup_output(text, prompt, extra_len):
|
| 10 |
section = text[len(prompt):]
|