Spaces:
Runtime error
Runtime error
Yash Sachdeva
commited on
Commit
·
91521af
1
Parent(s):
9739f59
run
Browse files- question_paper.py +3 -3
question_paper.py
CHANGED
@@ -22,7 +22,7 @@ app.add_middleware(
|
|
22 |
allow_headers=["*"],
|
23 |
)
|
24 |
|
25 |
-
@app.get("/
|
26 |
def llama():
|
27 |
# prompt = [{'role': 'user', 'content': ""+input}]
|
28 |
# inputs = TOKENIZER.apply_chat_template( prompt, add_generation_prompt=True, return_tensors='pt' )
|
@@ -31,9 +31,9 @@ def llama():
|
|
31 |
|
32 |
# tresponse = TOKENIZER.decode(tokens[0], skip_special_tokens=False)
|
33 |
# print(tresponse)
|
34 |
-
response_message = {
|
35 |
return Response(content=response_message, media_type="application/json")
|
36 |
-
|
37 |
# @app.on_event("startup")
|
38 |
# def init_model():
|
39 |
# global MODEL
|
|
|
22 |
allow_headers=["*"],
|
23 |
)
|
24 |
|
25 |
+
@app.get("/")
|
26 |
def llama():
|
27 |
# prompt = [{'role': 'user', 'content': ""+input}]
|
28 |
# inputs = TOKENIZER.apply_chat_template( prompt, add_generation_prompt=True, return_tensors='pt' )
|
|
|
31 |
|
32 |
# tresponse = TOKENIZER.decode(tokens[0], skip_special_tokens=False)
|
33 |
# print(tresponse)
|
34 |
+
response_message = {"message": "hello world"}
|
35 |
return Response(content=response_message, media_type="application/json")
|
36 |
+
|
37 |
# @app.on_event("startup")
|
38 |
# def init_model():
|
39 |
# global MODEL
|