Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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 |
+
|