Wootang02 commited on
Commit
038a1bd
1 Parent(s): 0c91458

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -2
app.py CHANGED
@@ -1,4 +1,12 @@
1
- #level 2 AI-writing tool
2
  import gradio as gr
 
3
 
4
- gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B", title="My First Text Generator", description="Input text and submit!").launch()
 
 
 
 
 
 
 
 
1
+ #level 3 AI-writing tool
2
  import gradio as gr
3
+ from gradio.mix import Parallel
4
 
5
+ myfirstvariable = "My Level 3 Text Generator"
6
+ mysecondvariable = "Input text, submit and the computer will produce text."
7
+
8
+ model1 = gr.Interface.load("huggingface/EleutherAI/gpt-neo-1.3B")
9
+ model2 = gr.Interface.load("huggingface/EleutherAI/gpt-j-6B")
10
+ model3 = gr.Interface.load("huggingface/gpt2")
11
+
12
+ gr.Parallel(model1, model2, model3, title=myfirstvariable, description=mysecondvariable).launch()