ElmasSs commited on
Commit
7310720
·
verified ·
1 Parent(s): 5768ceb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -69,7 +69,7 @@ def analyze_code(code):
69
  suggestion = ERROR_SUGGESTIONS.get(error_type, {"suggestion": "Bu hata için özel bir çözümümüz yok.", "example": ""})
70
 
71
  # Yapay zeka destekli analiz: Hata türüne göre yapay zeka açıklaması
72
- ai_prompt = f"Python'da '{error_type}' hatası oluştu. Hata mesajı: {error_message}. Bu hata ne anlama gelir ve nasıl çözülür?"
73
  ai_response = ai_analyzer(ai_prompt, max_length=150)[0]['generated_text']
74
 
75
  # Çözüm önerisi ve doğru kullanım örneği
 
69
  suggestion = ERROR_SUGGESTIONS.get(error_type, {"suggestion": "Bu hata için özel bir çözümümüz yok.", "example": ""})
70
 
71
  # Yapay zeka destekli analiz: Hata türüne göre yapay zeka açıklaması
72
+ ai_prompt = f"Python'da '{error_type}' hatası oluştu. Hata mesajı: {error_message}.?"
73
  ai_response = ai_analyzer(ai_prompt, max_length=150)[0]['generated_text']
74
 
75
  # Çözüm önerisi ve doğru kullanım örneği