Spaces:
Sleeping
Sleeping
app.py
CHANGED
@@ -33,7 +33,7 @@ def get_completion(prompt, model="dolly-v0-70m"):
|
|
33 |
response = generate_response(instruction, model=model, tokenizer=tokenizer, **pipeline_kwargs)
|
34 |
if response:
|
35 |
print(f"Instruction: {instruction}\n\n{response}\n\n-----------\n")
|
36 |
-
|
37 |
|
38 |
def greet(input):
|
39 |
prompt = f"""
|
|
|
33 |
response = generate_response(instruction, model=model, tokenizer=tokenizer, **pipeline_kwargs)
|
34 |
if response:
|
35 |
print(f"Instruction: {instruction}\n\n{response}\n\n-----------\n")
|
36 |
+
return response
|
37 |
|
38 |
def greet(input):
|
39 |
prompt = f"""
|