Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -3,8 +3,8 @@ from transformers import AutoTokenizer, AutoModelForCausalLM
|
|
| 3 |
import torch
|
| 4 |
import spaces
|
| 5 |
# Load the model and tokenizer
|
| 6 |
-
tokenizer = AutoTokenizer.from_pretrained("Yoxas/autotrain-
|
| 7 |
-
model = AutoModelForCausalLM.from_pretrained("Yoxas/autotrain-
|
| 8 |
@spaces.GPU(duration=120)
|
| 9 |
def chatbot_response(input_text, max_length, temperature):
|
| 10 |
inputs = tokenizer(input_text, return_tensors="pt", padding=True)
|
|
|
|
| 3 |
import torch
|
| 4 |
import spaces
|
| 5 |
# Load the model and tokenizer
|
| 6 |
+
tokenizer = AutoTokenizer.from_pretrained("Yoxas/autotrain-tinyllama-statistical")
|
| 7 |
+
model = AutoModelForCausalLM.from_pretrained("Yoxas/autotrain-tinyllama-statistical")
|
| 8 |
@spaces.GPU(duration=120)
|
| 9 |
def chatbot_response(input_text, max_length, temperature):
|
| 10 |
inputs = tokenizer(input_text, return_tensors="pt", padding=True)
|