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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -4
app.py CHANGED
@@ -3,13 +3,12 @@ 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
- demo = 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
 
14
- if __name__ == "__main__":
15
- demo.launch()
 
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