Chau Man Kiu commited on
Commit
e1c61c8
1 Parent(s): d0f3c9f

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +15 -0
app.py ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from gradio.mix import Parallel
3
+
4
+ title="My First Text Generator"
5
+ description="Input text."
6
+
7
+ #variables, functions and parameters
8
+ model1 = gr.Interface.load("huggingface/gpt2")
9
+ model2 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
10
+ model3 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B")
11
+
12
+ #functions, parameters and variables
13
+ gr.Parallel(model1, model2, model3,title=title,description=description).launch()
14
+
15
+