Spaces:
Sleeping
Sleeping
Update app.py
Browse files38 unmodified lines394041424344454638 unmodified lines# Yanıtı sohbet geçmişine eklemechat_session.history.append({"role": "model", "parts": [response.text]})# Gradio için tarihçeyi güncellemehistory.append((user_input, response.text))return history# 4. Gradio Arayüzü Oluşturma38 unmodified lines3940414243444546474838 unmodified lines# Yanıtı sohbet geçmişine eklemechat_session.history.append({"role": "model", "parts": [response.text]})# Gradio için tarihçeyi güncelleme (doğru formatta)history = history or [] # Eğer tarihçe boşsa yeni bir liste oluşturhistory.append({"role": "user", "content": user_input})history.append({"role": "assistant", "content": response.text})return history# 4. Gradio Arayüzü Oluşturma
app.py+4-2