Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,7 +11,7 @@ https://huggingface.co/docs/huggingface_hub/v0.22.2/en/guides/inference
|
|
| 11 |
client = InferenceClient(model="isitcoding/gpt2_120_finetuned")
|
| 12 |
|
| 13 |
# Initialize a text generation pipeline using Hugging Face's transformer
|
| 14 |
-
generator = pipeline('text-generation', model=
|
| 15 |
|
| 16 |
def respond(message, history: list[tuple[str, str]]):
|
| 17 |
"""
|
|
|
|
| 11 |
client = InferenceClient(model="isitcoding/gpt2_120_finetuned")
|
| 12 |
|
| 13 |
# Initialize a text generation pipeline using Hugging Face's transformer
|
| 14 |
+
generator = pipeline('text-generation', model=client)
|
| 15 |
|
| 16 |
def respond(message, history: list[tuple[str, str]]):
|
| 17 |
"""
|