Spaces:
Running
on
Zero
Running
on
Zero
pentarosarium
commited on
Commit
•
a5ea954
1
Parent(s):
44a66e5
v.1.48
Browse files
app.py
CHANGED
@@ -277,12 +277,16 @@ class EventDetector:
|
|
277 |
|
278 |
# Detect events
|
279 |
event_type, event_summary = self.detect_events(text, entity)
|
|
|
|
|
|
|
|
|
280 |
|
281 |
return {
|
282 |
'translated_text': translated_text,
|
283 |
'sentiment': sentiment,
|
284 |
'impact': impact,
|
285 |
-
'reasoning':
|
286 |
'event_type': event_type,
|
287 |
'event_summary': event_summary
|
288 |
}
|
@@ -648,7 +652,7 @@ def create_interface():
|
|
648 |
# Create state for file data
|
649 |
current_file = gr.State(None)
|
650 |
|
651 |
-
gr.Markdown("# AI-анализ мониторинга новостей v.1.
|
652 |
|
653 |
with gr.Row():
|
654 |
file_input = gr.File(
|
|
|
277 |
|
278 |
# Detect events
|
279 |
event_type, event_summary = self.detect_events(text, entity)
|
280 |
+
|
281 |
+
#translate Reasoning back
|
282 |
+
|
283 |
+
reasoning_ru = self._translate_text(reasoning)
|
284 |
|
285 |
return {
|
286 |
'translated_text': translated_text,
|
287 |
'sentiment': sentiment,
|
288 |
'impact': impact,
|
289 |
+
'reasoning': reasoning_ru,
|
290 |
'event_type': event_type,
|
291 |
'event_summary': event_summary
|
292 |
}
|
|
|
652 |
# Create state for file data
|
653 |
current_file = gr.State(None)
|
654 |
|
655 |
+
gr.Markdown("# AI-анализ мониторинга новостей v.1.48")
|
656 |
|
657 |
with gr.Row():
|
658 |
file_input = gr.File(
|