Nikoodrk commited on
Commit
ec9d3da
·
1 Parent(s): ca2ef05

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -3,12 +3,13 @@ from gradio.mix import Series
3
  summarization = gr.Interface.load("models/ieuniversity/pangea_summarization_model")
4
  translation = gr.Interface.load("models/ieuniversity/pangea_translation_model")
5
 
6
- Series(summarization, translation,
7
  title='PANGEA',
8
  description='Pangea is a space that allows you to enter a English news article in text format and receive its traslated summary in Turkish!',
9
  inputs=gr.inputs.Textbox(lines = 5, label="Copy and paste a news article in English here!"),
10
  theme='gstaff/sketch',
11
  css='div {background-image:url("https://huggingface.co/spaces/ieuniversity/Pangea/blob/main/pangea.png");}',
12
- thumbnail='ieuniversity/Pangea/pangea.png').launch()
13
-
 
14
 
 
3
  summarization = gr.Interface.load("models/ieuniversity/pangea_summarization_model")
4
  translation = gr.Interface.load("models/ieuniversity/pangea_translation_model")
5
 
6
+ demo = gr.Series(summarization, translation,
7
  title='PANGEA',
8
  description='Pangea is a space that allows you to enter a English news article in text format and receive its traslated summary in Turkish!',
9
  inputs=gr.inputs.Textbox(lines = 5, label="Copy and paste a news article in English here!"),
10
  theme='gstaff/sketch',
11
  css='div {background-image:url("https://huggingface.co/spaces/ieuniversity/Pangea/blob/main/pangea.png");}',
12
+ thumbnail='ieuniversity/Pangea/pangea.png')
13
+ if __name__ == "__main__":
14
+ demo.launch()
15