ElmasSs commited on
Commit
ca5ac12
·
verified ·
1 Parent(s): 04898d0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -28,7 +28,8 @@ def analyze_code(code):
28
  suggestion = ERROR_SUGGESTIONS.get(error_type, "Bu hata için özel bir çözümümüz yok.")
29
 
30
  # Yapay zeka destekli analiz
31
- ai_response = ai_analyzer(f"Python'da {error_type} hatası ile ilgili detaylı açıklama ve çözüm önerisi ver:", max_length=100)[0]['generated_text']
 
32
 
33
  return f"❌ **{error_type} Hatası**:\n{error_message}\n\n💡 **Çözüm Önerisi:** {suggestion}\n\n🤖 **Yapay Zeka Açıklaması:** {ai_response}"
34
 
 
28
  suggestion = ERROR_SUGGESTIONS.get(error_type, "Bu hata için özel bir çözümümüz yok.")
29
 
30
  # Yapay zeka destekli analiz
31
+ ai_prompt = f"Python'da {error_type} hatası ile ilgili detaylı açıklama ve çözüm önerisi ver."
32
+ ai_response = ai_analyzer(ai_prompt, max_length=150)[0]['generated_text']
33
 
34
  return f"❌ **{error_type} Hatası**:\n{error_message}\n\n💡 **Çözüm Önerisi:** {suggestion}\n\n🤖 **Yapay Zeka Açıklaması:** {ai_response}"
35