chinhon commited on
Commit
325a100
1 Parent(s): 3109a9b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -1,6 +1,7 @@
1
  import gradio as gr
2
  import re
3
 
 
4
  from transformers import (
5
  AutoTokenizer,
6
  AutoModelForSeq2SeqLM,
@@ -107,7 +108,7 @@ headline3 = gr.Interface(
107
  )
108
 
109
  #define Gradio interface for 3 parallel apps
110
- gradio_ui = gr.Parallel(
111
  headline1,
112
  headline2,
113
  headline3,
@@ -117,6 +118,5 @@ gradio_ui = gr.Parallel(
117
  label="Paste parts of your commentary here, and choose from 3 suggested headlines",
118
  ),
119
  theme="huggingface",
120
- )
121
-
122
- gradio_ui.launch(enable_queue=True)
 
1
  import gradio as gr
2
  import re
3
 
4
+ from gradio.mix import Parallel
5
  from transformers import (
6
  AutoTokenizer,
7
  AutoModelForSeq2SeqLM,
 
108
  )
109
 
110
  #define Gradio interface for 3 parallel apps
111
+ Parallel(
112
  headline1,
113
  headline2,
114
  headline3,
 
118
  label="Paste parts of your commentary here, and choose from 3 suggested headlines",
119
  ),
120
  theme="huggingface",
121
+ enable_queue=True
122
+ ).launch()