Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,9 @@ examples = [
|
|
17 |
|
18 |
title = "InstructionGen: Flan T5 Small & Bart Base"
|
19 |
description = "This demo compares the [flan-t5-small-instructiongen](https://huggingface.co/pszemraj/flan-t5-small-instructiongen) and [bart-base-instructiongen](https://huggingface.co/pszemraj/bart-base-instructiongen) models on 'creating' an instruction for arbitrary text."
|
20 |
-
article = "
|
|
|
|
|
21 |
|
22 |
def inference(text):
|
23 |
output_flan_t5 = pipe_flan_t5(
|
@@ -34,10 +36,11 @@ io = gr.Interface(
|
|
34 |
gr.Textbox(
|
35 |
lines=3,
|
36 |
placeholder="Add text here & find out what intruction could cause an LLM to generate it!",
|
|
|
37 |
),
|
38 |
outputs=[
|
39 |
-
gr.Textbox(lines=
|
40 |
-
gr.Textbox(lines=
|
41 |
],
|
42 |
title=title,
|
43 |
description=description,
|
|
|
17 |
|
18 |
title = "InstructionGen: Flan T5 Small & Bart Base"
|
19 |
description = "This demo compares the [flan-t5-small-instructiongen](https://huggingface.co/pszemraj/flan-t5-small-instructiongen) and [bart-base-instructiongen](https://huggingface.co/pszemraj/bart-base-instructiongen) models on 'creating' an instruction for arbitrary text."
|
20 |
+
article = """---
|
21 |
+
|
22 |
+
These models generate instructions for Large Language Models (LLMs) from arbitrary text. They are fine-tuned on the [fleece2instructions](https://huggingface.co/datasets/pszemraj/fleece2instructions) dataset, which is a filtered/formatted version of the [alpaca](https://huggingface.co/datasets/tatsu-lab/alpaca) dataset."""
|
23 |
|
24 |
def inference(text):
|
25 |
output_flan_t5 = pipe_flan_t5(
|
|
|
36 |
gr.Textbox(
|
37 |
lines=3,
|
38 |
placeholder="Add text here & find out what intruction could cause an LLM to generate it!",
|
39 |
+
interactive=True,
|
40 |
),
|
41 |
outputs=[
|
42 |
+
gr.Textbox(lines=1, label="Flan T5 Small", interactive=False),
|
43 |
+
gr.Textbox(lines=1, label="Bart Base", interactive=False),
|
44 |
],
|
45 |
title=title,
|
46 |
description=description,
|