Update app.py
Browse files
app.py
CHANGED
@@ -45,6 +45,8 @@ def model_response(message, history):
|
|
45 |
|
46 |
# return response.text
|
47 |
|
|
|
|
|
48 |
# --- Преобразование формата истории Gradio в формат Google GenAI ---
|
49 |
gemini_history = []
|
50 |
# История Gradio обычно [['user1', 'bot1'], ['user2', 'bot2'], ..., ['usern', None]]
|
|
|
45 |
|
46 |
# return response.text
|
47 |
|
48 |
+
message = message["text"]
|
49 |
+
|
50 |
# --- Преобразование формата истории Gradio в формат Google GenAI ---
|
51 |
gemini_history = []
|
52 |
# История Gradio обычно [['user1', 'bot1'], ['user2', 'bot2'], ..., ['usern', None]]
|