Changes in app.py
Browse files
app.py
CHANGED
|
@@ -36,7 +36,7 @@ def get_llama_response(pipeline,prompt):
|
|
| 36 |
print(sequences[0]['generated_text'])
|
| 37 |
|
| 38 |
|
| 39 |
-
pipeline = AutoTokenizer.from_pretrained(model)
|
| 40 |
#prompt="Can you help me to write rest api endpoints in python ?"
|
| 41 |
response = get_llama_response(pipeline,prompt)
|
| 42 |
|
|
|
|
| 36 |
print(sequences[0]['generated_text'])
|
| 37 |
|
| 38 |
|
| 39 |
+
pipeline = AutoTokenizer.from_pretrained(model, token=HF_TOKEN)
|
| 40 |
#prompt="Can you help me to write rest api endpoints in python ?"
|
| 41 |
response = get_llama_response(pipeline,prompt)
|
| 42 |
|