Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -5,7 +5,7 @@ generator = pipeline('text-generation', model='sr5434/gptQuotes', tokenizer='fac
|
|
5 |
|
6 |
def generate(text):
|
7 |
result = generator("Generate a wise quote:\n" + text, max_length=30, num_return_sequences=1)
|
8 |
-
return result[0]["generated_text"]
|
9 |
|
10 |
examples = [
|
11 |
['"'],
|
|
|
5 |
|
6 |
def generate(text):
|
7 |
result = generator("Generate a wise quote:\n" + text, max_length=30, num_return_sequences=1)
|
8 |
+
return result[0]["generated_text"][23:]
|
9 |
|
10 |
examples = [
|
11 |
['"'],
|