Spaces:
Running
Running
Lingo-IITGN
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -3,7 +3,7 @@ from transformers import AutoModelForCausalLM, AutoTokenizer, pipeline
|
|
3 |
|
4 |
|
5 |
tokenizer = AutoTokenizer.from_pretrained("LingoIITGN/ganga-1b")
|
6 |
-
model = AutoModelForCausalLM.from_pretrained("LingoIITGN/ganga-1b")
|
7 |
|
8 |
@spaces.GPU(duration=120)
|
9 |
def greet(input_text):
|
|
|
3 |
|
4 |
|
5 |
tokenizer = AutoTokenizer.from_pretrained("LingoIITGN/ganga-1b")
|
6 |
+
model = AutoModelForCausalLM.from_pretrained("LingoIITGN/ganga-1b", device_map="auto")
|
7 |
|
8 |
@spaces.GPU(duration=120)
|
9 |
def greet(input_text):
|