Spaces:
Runtime error
Runtime error
deepapaikar
commited on
Commit
•
b5efb25
1
Parent(s):
bb18624
Update app.py
Browse files
app.py
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig, pipeline
|
2 |
import gradio as gr
|
3 |
import torch
|
|
|
4 |
|
5 |
model_id = "deepapaikar/Llama_SCplusQA_10epochs"
|
6 |
print("Before loading model")
|
@@ -27,7 +28,7 @@ pipe = pipeline(
|
|
27 |
model=model,
|
28 |
tokenizer=tokenizer,
|
29 |
max_length=100,
|
30 |
-
trust_remote_code=True
|
31 |
)
|
32 |
print("Model loaded successfully")
|
33 |
#system_message = "Answer the questions truthfully and to the point."
|
|
|
1 |
from transformers import AutoModelForCausalLM, AutoTokenizer, BitsAndBytesConfig, pipeline
|
2 |
import gradio as gr
|
3 |
import torch
|
4 |
+
import spaces
|
5 |
|
6 |
model_id = "deepapaikar/Llama_SCplusQA_10epochs"
|
7 |
print("Before loading model")
|
|
|
28 |
model=model,
|
29 |
tokenizer=tokenizer,
|
30 |
max_length=100,
|
31 |
+
trust_remote_code=True,
|
32 |
)
|
33 |
print("Model loaded successfully")
|
34 |
#system_message = "Answer the questions truthfully and to the point."
|