ashutoshzade commited on
Commit
0c38857
1 Parent(s): e264ec0

Initial version

Browse files
Files changed (1) hide show
  1. app.py +9 -0
app.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ def summarize(input):
3
+ output = get_completion(input)
4
+ return output[0]['summary_text']
5
+
6
+ gr.close_all()
7
+ demo = gr.Interface(fn=summarize, inputs="text", outputs="text")
8
+ #demo.launch(share=True, server_port=int(os.environ['PORT1']))
9
+ demo.launch()