CognitiveScience commited on
Commit
07492ce
·
1 Parent(s): 0aacb32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -128,8 +128,10 @@ def ccogsphere(name: str, rate: str, celsci: str):
128
 
129
  reviews, total_reviews = get_latest_reviews(db)
130
  db.close()
131
- r = requests.post(url='https://ccml-persistent-data2.hf.space/api/predict/', json={"data": [celsci + " ", celsci2+celscix2]})
132
-
 
 
133
  return reviews, total_reviews
134
 
135
  def run_actr():
 
128
 
129
  reviews, total_reviews = get_latest_reviews(db)
130
  db.close()
131
+ try:
132
+ r = requests.post(url='https://ccml-persistent-data2.hf.space/api/predict/', json={"data": [celsci + " ", celsci2+List(celscix)]})
133
+ catch:
134
+ print ("CSV error")
135
  return reviews, total_reviews
136
 
137
  def run_actr():