Spaces:
Runtime error
Runtime error
Commit
•
0c38857
1
Parent(s):
e264ec0
Initial version
Browse files
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()
|