mirror of
https://github.com/gradio-app/gradio.git
synced 2024-12-03 01:50:59 +08:00
600722c218
* Add examples for series and parallel * Add ML demos for interface and load
10 lines
309 B
Python
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() |