Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,8 +3,6 @@ from transformers import pipeline
|
|
3 |
|
4 |
generator = pipeline('text-generation', model='jslin09/bloom-560m-finetuned-fraud')
|
5 |
|
6 |
-
upstream = gr.Interface.load("jslin09/bloom-560m-finetuned-fraud")
|
7 |
-
|
8 |
def generate(text):
|
9 |
result = generator(text, max_length=500, num_return_sequences=1)
|
10 |
return result[0]["generated_text"]
|
|
|
3 |
|
4 |
generator = pipeline('text-generation', model='jslin09/bloom-560m-finetuned-fraud')
|
5 |
|
|
|
|
|
6 |
def generate(text):
|
7 |
result = generator(text, max_length=500, num_return_sequences=1)
|
8 |
return result[0]["generated_text"]
|