Spaces:
Sleeping
Sleeping
edited token
Browse files
app.py
CHANGED
@@ -29,10 +29,6 @@ llama_pipeline = pipeline(
|
|
29 |
if access_token is None:
|
30 |
raise ValueError("Access token is missing. Make sure it is set as an environment variable.")
|
31 |
|
32 |
-
# Verwende das Zugriffstoken für die Authentifizierung
|
33 |
-
llama_pipeline.tokenizer.model.tokenizer_kwargs.pop("use_auth_token", None)
|
34 |
-
|
35 |
-
|
36 |
@app.get("/generate")
|
37 |
def generate(text: str):
|
38 |
"""
|
|
|
29 |
if access_token is None:
|
30 |
raise ValueError("Access token is missing. Make sure it is set as an environment variable.")
|
31 |
|
|
|
|
|
|
|
|
|
32 |
@app.get("/generate")
|
33 |
def generate(text: str):
|
34 |
"""
|