MrSimple01 commited on
Commit
88a62c0
·
verified ·
1 Parent(s): 9c57d14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -0
app.py CHANGED
@@ -74,6 +74,12 @@ def analyze_segment_with_gemini(segment_text):
74
  - Do **not generate overly generic or obvious questions** (e.g., "What is mentioned in the text?").
75
  - Focus on **core ideas, logical reasoning, and conceptual understanding**.
76
 
 
 
 
 
 
 
77
 
78
  Text:
79
  {segment_text}
 
74
  - Do **not generate overly generic or obvious questions** (e.g., "What is mentioned in the text?").
75
  - Focus on **core ideas, logical reasoning, and conceptual understanding**.
76
 
77
+ ADDITIONAL REQUIREMENT:
78
+ - **First, detect the language of the original text.**
79
+ - **Generate ALL output (topic names, key concepts, summaries, and quizzes) in the same language as the original text.**
80
+ - If the text is in Russian, generate all responses in Russian.
81
+ - If the text is in another language, generate responses in that original language.
82
+
83
 
84
  Text:
85
  {segment_text}