Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -89,6 +89,7 @@ def build_prompt(task_instruction: str, format_instruction: str, tools: list, qu
|
|
89 |
prompt += f"[BEGIN OF QUERY]\n{query}\n[END OF QUERY]\n\n"
|
90 |
return prompt
|
91 |
|
|
|
92 |
def generate_response(tools_input, query):
|
93 |
try:
|
94 |
tools = json.loads(tools_input)
|
|
|
89 |
prompt += f"[BEGIN OF QUERY]\n{query}\n[END OF QUERY]\n\n"
|
90 |
return prompt
|
91 |
|
92 |
+
@spaces.GPU
|
93 |
def generate_response(tools_input, query):
|
94 |
try:
|
95 |
tools = json.loads(tools_input)
|