Spaces:
Runtime error
Runtime error
Kajise Org
commited on
Commit
•
2aa58d4
1
Parent(s):
046526a
Fix indent #2
Browse files
app.py
CHANGED
@@ -54,8 +54,8 @@ def search_ddg(question: str):
|
|
54 |
|
55 |
def generate(instruction):
|
56 |
feeding_data = search_ddg(instruction)
|
57 |
-
|
58 |
-
|
59 |
|
60 |
response = llm(prompt, stop=['### Instruction:', '### End'])
|
61 |
result = response['choices'][0]['text']
|
@@ -132,7 +132,7 @@ with gr.Blocks(theme=custom_theme, analytics_enabled=False, css=css) as demo:
|
|
132 |
7b quantized 4bit (q4_0)
|
133 |
|
134 |
Type in the box below and click the button to generate answers to your most pressing questions!
|
135 |
-
|
136 |
|
137 |
with gr.Row():
|
138 |
with gr.Column(scale=3):
|
|
|
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']
|
|
|
132 |
7b quantized 4bit (q4_0)
|
133 |
|
134 |
Type in the box below and click the button to generate answers to your most pressing questions!
|
135 |
+
""")
|
136 |
|
137 |
with gr.Row():
|
138 |
with gr.Column(scale=3):
|