Spaces:
Runtime error
Runtime error
app update
Browse files
app.py
CHANGED
@@ -8,7 +8,7 @@ tokenizer = AutoTokenizer.from_pretrained(model_path, trust_remote_code=True)
|
|
8 |
|
9 |
|
10 |
|
11 |
-
def generate(question):
|
12 |
system_message = "You are a question answering chatbot. Provide a clear and detailed explanation"
|
13 |
prompt = f"[INST] <<SYS>>\n{system_message}\n<</SYS>>\n\n {question} [/INST]" # replace the command here with something relevant to your task
|
14 |
|
|
|
8 |
|
9 |
|
10 |
|
11 |
+
def generate(question, context):
|
12 |
system_message = "You are a question answering chatbot. Provide a clear and detailed explanation"
|
13 |
prompt = f"[INST] <<SYS>>\n{system_message}\n<</SYS>>\n\n {question} [/INST]" # replace the command here with something relevant to your task
|
14 |
|