gradio/demo/interface_parallel_load/run.py
Freddy Boulton 600722c218
Add examples for series and parallel (#1738)
* Add examples for series and parallel

* Add ML demos for interface and load
2022-07-11 11:21:30 -04:00

10 lines
309 B
Python

import gradio as gr
generator1 = gr.Interface.load("huggingface/gpt2")
generator2 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-2.7B")
generator3 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
demo = gr.Parallel(generator1, generator2, generator3)
if __name__ == "__main__":
demo.launch()