niranjanpc commited on
Commit
08d4765
·
verified ·
1 Parent(s): 994a9ee

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -24,3 +24,8 @@ if st.button("Summarize"):
24
  st.success(summary[0]['summary_text'])
25
  else:
26
  st.warning("Please enter some text to summarize.")
 
 
 
 
 
 
24
  st.success(summary[0]['summary_text'])
25
  else:
26
  st.warning("Please enter some text to summarize.")
27
+
28
+ import os
29
+ port = int(os.environ.get("PORT", 7860))
30
+ app.launch(server_name="0.0.0.0", server_port=port)
31
+