Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ tokenizer = AutoTokenizer.from_pretrained(checkpoint)
|
|
14 |
model = AutoModelForSeq2SeqLM.from_pretrained(checkpoint)
|
15 |
|
16 |
|
17 |
-
|
18 |
alpaca_prompt = """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
|
19 |
|
20 |
### Instruction:
|
|
|
14 |
model = AutoModelForSeq2SeqLM.from_pretrained(checkpoint)
|
15 |
|
16 |
|
17 |
+
def run_generation(user_text, top_p, temperature, top_k, max_new_tokens):
|
18 |
alpaca_prompt = """Below is an instruction that describes a task, paired with an input that provides further context. Write a response that appropriately completes the request.
|
19 |
|
20 |
### Instruction:
|