Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -7,10 +7,11 @@ app=FastAPI()
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
api_key = os.getenv("HF_API_KEY")
|
|
|
|
| 10 |
|
| 11 |
|
| 12 |
# Initialize the text generation pipeline
|
| 13 |
-
pipe = pipeline("text-generation", model="meta-llama/Meta-Llama-3.1-8B"
|
| 14 |
|
| 15 |
|
| 16 |
@app.get("/")
|
|
|
|
| 7 |
import os
|
| 8 |
|
| 9 |
api_key = os.getenv("HF_API_KEY")
|
| 10 |
+
login(token=api_key)
|
| 11 |
|
| 12 |
|
| 13 |
# Initialize the text generation pipeline
|
| 14 |
+
pipe = pipeline("text-generation", model="meta-llama/Meta-Llama-3.1-8B")
|
| 15 |
|
| 16 |
|
| 17 |
@app.get("/")
|