Lingo-IITGN commited on
Commit
b38d665
1 Parent(s): 99689c5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -7,7 +7,7 @@ model = AutoModelForCausalLM.from_pretrained("LingoIITGN/ganga-1b")
7
 
8
  @spaces.GPU
9
  def greet(input_text):
10
- input_token = tokenizer.encode(input_text, return_tensors="pt").to("cuda")
11
  output = model.generate(input_token, max_new_tokens=100, num_return_sequences=1, do_sample=True, top_k=50, top_p=0.95, temperature=0.7)
12
  output_text = tokenizer.batch_decode(output)[0]
13
  return output_text
 
7
 
8
  @spaces.GPU
9
  def greet(input_text):
10
+ input_token = tokenizer.encode(input_text, return_tensors="pt")
11
  output = model.generate(input_token, max_new_tokens=100, num_return_sequences=1, do_sample=True, top_k=50, top_p=0.95, temperature=0.7)
12
  output_text = tokenizer.batch_decode(output)[0]
13
  return output_text