Spaces:
Runtime error
Runtime error
Yash Sachdeva
commited on
Commit
·
3461642
1
Parent(s):
fdc39d2
stableLM
Browse files- question_paper.py +1 -1
question_paper.py
CHANGED
@@ -12,7 +12,7 @@ TOKENIZER = None
|
|
12 |
# ?input=%22Name%203%20shows%22
|
13 |
@app.get("/")
|
14 |
def llama(input):
|
15 |
-
prompt = [{'role': 'user', 'content': input}]
|
16 |
inputs = TOKENIZER.apply_chat_template( prompt, add_generation_prompt=True, return_tensors='pt' )
|
17 |
|
18 |
tokens = MODEL.generate( inputs.to(MODEL.device), max_new_tokens=1024, temperature=0.3, do_sample=True)
|
|
|
12 |
# ?input=%22Name%203%20shows%22
|
13 |
@app.get("/")
|
14 |
def llama(input):
|
15 |
+
prompt = [{'role': 'user', 'content': ""+input}]
|
16 |
inputs = TOKENIZER.apply_chat_template( prompt, add_generation_prompt=True, return_tensors='pt' )
|
17 |
|
18 |
tokens = MODEL.generate( inputs.to(MODEL.device), max_new_tokens=1024, temperature=0.3, do_sample=True)
|