pentarosarium commited on
Commit
5cd7bdb
·
1 Parent(s): 62b24fd
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -77,7 +77,7 @@ class FallbackLLMSystem:
77
  self.device = "cuda" if torch.cuda.is_available() else "cpu"
78
  self.model = self.model.to(self.device)
79
 
80
- st.success(f"Пока все в порядке: запущена MT5 model on {self.device}")
81
 
82
  except Exception as e:
83
  st.error(f"Ошибка запуска модели MT5: {str(e)}")
@@ -461,7 +461,7 @@ class ProcessingUI:
461
  with st.session_state.negative_container:
462
  st.markdown(f"""
463
  <div style='background-color: #ffebee; padding: 10px; border-radius: 5px; margin: 5px 0;'>
464
- <strong style='color: #d32f2f;'>⚠️ Negative Alert:</strong><br>
465
  <strong>Entity:</strong> {entity}<br>
466
  <strong>News:</strong> {headline}<br>
467
  <strong>Analysis:</strong> {analysis}<br>
@@ -473,7 +473,7 @@ class ProcessingUI:
473
  with st.session_state.events_container:
474
  st.markdown(f"""
475
  <div style='background-color: #e3f2fd; padding: 10px; border-radius: 5px; margin: 5px 0;'>
476
- <strong style='color: #1976d2;'>🔔 Event Detected:</strong><br>
477
  <strong>Entity:</strong> {entity}<br>
478
  <strong>Type:</strong> {event_type}<br>
479
  <strong>News:</strong> {headline}
@@ -1164,7 +1164,7 @@ def main():
1164
  st.set_page_config(layout="wide")
1165
 
1166
  with st.sidebar:
1167
- st.title("::: AI-анализ мониторинга новостей (v.3.62):::")
1168
  st.subheader("по материалам СКАН-ИНТЕРФАКС")
1169
 
1170
  model_choice = st.radio(
@@ -1202,7 +1202,7 @@ def main():
1202
 
1203
  with col1:
1204
  # Area for real-time updates
1205
- st.subheader("Что найдено, сообщаю:")
1206
  st.markdown("""
1207
  <style>
1208
  .stProgress .st-bo {
 
77
  self.device = "cuda" if torch.cuda.is_available() else "cpu"
78
  self.model = self.model.to(self.device)
79
 
80
+ st.success(f"пока все в порядке: запущена MT5 model на = {self.device} =")
81
 
82
  except Exception as e:
83
  st.error(f"Ошибка запуска модели MT5: {str(e)}")
 
461
  with st.session_state.negative_container:
462
  st.markdown(f"""
463
  <div style='background-color: #ffebee; padding: 10px; border-radius: 5px; margin: 5px 0;'>
464
+ <strong style='color: #d32f2f;'>⚠️ Внимание: негатив!:</strong><br>
465
  <strong>Entity:</strong> {entity}<br>
466
  <strong>News:</strong> {headline}<br>
467
  <strong>Analysis:</strong> {analysis}<br>
 
473
  with st.session_state.events_container:
474
  st.markdown(f"""
475
  <div style='background-color: #e3f2fd; padding: 10px; border-radius: 5px; margin: 5px 0;'>
476
+ <strong style='color: #1976d2;'>🔔 Возможно, речь о важном факте:</strong><br>
477
  <strong>Entity:</strong> {entity}<br>
478
  <strong>Type:</strong> {event_type}<br>
479
  <strong>News:</strong> {headline}
 
1164
  st.set_page_config(layout="wide")
1165
 
1166
  with st.sidebar:
1167
+ st.title("::: AI-анализ мониторинга новостей (v.3.63):::")
1168
  st.subheader("по материалам СКАН-ИНТЕРФАКС")
1169
 
1170
  model_choice = st.radio(
 
1202
 
1203
  with col1:
1204
  # Area for real-time updates
1205
+ st.subheader("Что найдено, показываю:")
1206
  st.markdown("""
1207
  <style>
1208
  .stProgress .st-bo {