taskswithcode commited on
Commit
102b976
·
1 Parent(s): 1e9f08c

Uppercased

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -300,7 +300,7 @@ def main():
300
  results = run_test(selected_model,sentences,display_area,main_index - 1,(uploaded_file is not None))
301
  display_area.empty()
302
  with display_area.container():
303
- device = 'gpu' if torch.cuda.is_available() else 'cpu'
304
  response_info = f"Computation time on {device}: {time.time() - start:.2f} secs for {len(sentences)} sentences"
305
  display_results(sentences,main_index - 1,results,response_info)
306
  #st.json(results)
 
300
  results = run_test(selected_model,sentences,display_area,main_index - 1,(uploaded_file is not None))
301
  display_area.empty()
302
  with display_area.container():
303
+ device = 'GPU' if torch.cuda.is_available() else 'CPU'
304
  response_info = f"Computation time on {device}: {time.time() - start:.2f} secs for {len(sentences)} sentences"
305
  display_results(sentences,main_index - 1,results,response_info)
306
  #st.json(results)