soufyane commited on
Commit
3f9e70e
1 Parent(s): b6ae712

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -21,9 +21,9 @@ def analyze_text(text):
21
  return result
22
 
23
  # Function to process a CSV file and update results live
24
- @spaces.GPU(duration=600)
25
  def analyze_csv(file):
26
- df = pd.read_csv(file.name)
27
  texts = df['text'].tolist()
28
 
29
  results = []
 
21
  return result
22
 
23
  # Function to process a CSV file and update results live
24
+ @spaces.GPU
25
  def analyze_csv(file):
26
+ df = pd.read_csv(file.name, nrows=100)
27
  texts = df['text'].tolist()
28
 
29
  results = []