Marek4321 commited on
Commit
9676761
·
verified ·
1 Parent(s): 977fdbd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -460,7 +460,9 @@ class FGIIDIAnalyzer:
460
  # Auto-refresh podczas przetwarzania
461
  if st.session_state.processing_status == 'running':
462
  # Sprawdź czy wątek się zakończył
463
- if hasattr(self, 'processing_thread') and not self.processing_thread.is_alive():
 
 
464
  # Wątek się zakończył - sprawdź czy mamy raport
465
  if hasattr(self, 'local_final_report'):
466
  st.session_state.final_report = self.local_final_report
 
460
  # Auto-refresh podczas przetwarzania
461
  if st.session_state.processing_status == 'running':
462
  # Sprawdź czy wątek się zakończył
463
+ if (hasattr(self, 'processing_thread') and
464
+ self.processing_thread is not None and
465
+ not self.processing_thread.is_alive()):
466
  # Wątek się zakończył - sprawdź czy mamy raport
467
  if hasattr(self, 'local_final_report'):
468
  st.session_state.final_report = self.local_final_report