rkf2778 commited on
Commit
a0c88a6
1 Parent(s): df37dd4

Update torch device information

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -245,6 +245,8 @@ def dataset_load():
245
  st.write(f'Product Name : {prod_name}')
246
  st.write(f'Product ID : {selected_product_id} ')
247
  st.write(f'Total Rows : {preview_df.shape[0]}')
 
 
248
 
249
  #================================================================
250
  # Use the condition to control the display of the radio buttons
@@ -280,9 +282,9 @@ def dataset_load():
280
  # =========================================================================================================================
281
  st.markdown("---")
282
  st.subheader("Step 3 : Initialising the models & running operation")
283
- with st.spinner("Initializing RoBERTa Model ............"):
284
- device = "cuda" if torch.cuda.is_available() else "cpu"
285
- st.write(f"Selected device for processing is (CPU/GPU) : {device.upper()}")
286
 
287
  # ROBERTA Model
288
  with st.spinner("Initializing RoBERTa Model ............"):
 
245
  st.write(f'Product Name : {prod_name}')
246
  st.write(f'Product ID : {selected_product_id} ')
247
  st.write(f'Total Rows : {preview_df.shape[0]}')
248
+ device = "cuda" if torch.cuda.is_available() else "cpu"
249
+ st.write(f"Selected device for processing is (CPU/GPU) : {device.upper()}")
250
 
251
  #================================================================
252
  # Use the condition to control the display of the radio buttons
 
282
  # =========================================================================================================================
283
  st.markdown("---")
284
  st.subheader("Step 3 : Initialising the models & running operation")
285
+ #with st.spinner("Initializing RoBERTa Model ............"):
286
+ #device = "cuda" if torch.cuda.is_available() else "cpu"
287
+ #st.write(f"Selected device for processing is (CPU/GPU) : {device.upper()}")
288
 
289
  # ROBERTA Model
290
  with st.spinner("Initializing RoBERTa Model ............"):