Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,9 +15,9 @@ examples = [
|
|
| 15 |
]
|
| 16 |
|
| 17 |
#instantiate variables as functions
|
| 18 |
-
model1 = gr.Interface.load("huggingface/
|
| 19 |
model2 = gr.Interface.load("huggingface/google/flan-t5-xl")
|
| 20 |
-
model3 = gr.Interface.load("huggingface/bigscience/bloomz
|
| 21 |
model4 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
| 22 |
|
| 23 |
#decapoda-research/llama-7b-hf
|
|
@@ -35,7 +35,7 @@ with gr.Blocks() as demo:
|
|
| 35 |
btn.click(complete_with_gpt, textbox, textbox)
|
| 36 |
|
| 37 |
tab1 = gr.Interface.load("huggingface/gpt2", description=description1)
|
| 38 |
-
tab2 = gr.
|
| 39 |
tab3 = demo.launch()
|
| 40 |
|
| 41 |
demo1 = gr.TabbedInterface([tab1, tab2, tab3], ["Level 1", "Level 3", "Level 5"], title=title, description=description)
|
|
|
|
| 15 |
]
|
| 16 |
|
| 17 |
#instantiate variables as functions
|
| 18 |
+
model1 = gr.Interface.load("huggingface/togethercomputer/GPT-NeoXT-Chat-Base-20B")
|
| 19 |
model2 = gr.Interface.load("huggingface/google/flan-t5-xl")
|
| 20 |
+
model3 = gr.Interface.load("huggingface/bigscience/bloomz")
|
| 21 |
model4 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
|
| 22 |
|
| 23 |
#decapoda-research/llama-7b-hf
|
|
|
|
| 35 |
btn.click(complete_with_gpt, textbox, textbox)
|
| 36 |
|
| 37 |
tab1 = gr.Interface.load("huggingface/gpt2", description=description1)
|
| 38 |
+
tab2 = gr.Parallel(model1, model2, model3, inputs=gr.Textbox(lines=5, label="Input explicit or implicit instructions"), description=description2, examples=examples)
|
| 39 |
tab3 = demo.launch()
|
| 40 |
|
| 41 |
demo1 = gr.TabbedInterface([tab1, tab2, tab3], ["Level 1", "Level 3", "Level 5"], title=title, description=description)
|