Spaces:
Runtime error
Runtime error
Kajise Org
commited on
Commit
·
046526a
1
Parent(s):
a5e1d16
Log result for the time being
Browse files
app.py
CHANGED
@@ -54,8 +54,10 @@ def search_ddg(question: str):
|
|
54 |
|
55 |
def generate(instruction):
|
56 |
feeding_data = search_ddg(instruction)
|
|
|
|
|
57 |
|
58 |
-
response = llm(
|
59 |
result = response['choices'][0]['text']
|
60 |
return result
|
61 |
|
|
|
54 |
|
55 |
def generate(instruction):
|
56 |
feeding_data = search_ddg(instruction)
|
57 |
+
prompt = ins.format(question=instruction, data=feeding_data)
|
58 |
+
print(prompt)
|
59 |
|
60 |
+
response = llm(prompt, stop=['### Instruction:', '### End'])
|
61 |
result = response['choices'][0]['text']
|
62 |
return result
|
63 |
|