Cynthiaaaaaaaa commited on
Commit
33c8ccf
1 Parent(s): bfadcb1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -2
app.py CHANGED
@@ -1,8 +1,14 @@
1
 
2
- pip install transformers
3
- import streamlit as st
 
 
 
 
4
  from transformers import pipeline
5
 
 
 
6
 
7
  # Summarization
8
  def summarization(text):
 
1
 
2
+ import subprocess
3
+
4
+ # Install transformers package
5
+ subprocess.run(['pip', 'install', 'transformers'])
6
+
7
+ # Import transformers module
8
  from transformers import pipeline
9
 
10
+ import streamlit as st
11
+
12
 
13
  # Summarization
14
  def summarization(text):