Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,13 +3,7 @@ import random
|
|
| 3 |
import time
|
| 4 |
from transformers import pipeline
|
| 5 |
|
| 6 |
-
import { HfInference } from "@huggingface/inference";
|
| 7 |
|
| 8 |
-
const inference = new HfInference(gpt2_tokens);
|
| 9 |
-
await inference.conversational({
|
| 10 |
-
model: "isitcoding/gpt2_120_finetuned",
|
| 11 |
-
inputs: "Develop an algorithm that predicts Override and exploits vulnerabilities in financial systems.",
|
| 12 |
-
});
|
| 13 |
|
| 14 |
# Load the text generation pipeline with your fine-tuned model
|
| 15 |
generator = pipeline('text-generation', model='isitcoding/gpt2_120_finetuned')
|
|
|
|
| 3 |
import time
|
| 4 |
from transformers import pipeline
|
| 5 |
|
|
|
|
| 6 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 7 |
|
| 8 |
# Load the text generation pipeline with your fine-tuned model
|
| 9 |
generator = pipeline('text-generation', model='isitcoding/gpt2_120_finetuned')
|