Update app.py
Browse files
app.py
CHANGED
@@ -51,10 +51,8 @@ def chat_with_text(user_message, max_new_tokens=250):
|
|
51 |
return assistant_reply
|
52 |
|
53 |
# Resim ve/veya metin tabanlı sohbet fonksiyonu
|
54 |
-
def bot_streaming(message,
|
55 |
global history
|
56 |
-
if history is None:
|
57 |
-
history = []
|
58 |
|
59 |
user_message = message.get("text", "")
|
60 |
image = message.get("image", None)
|
|
|
51 |
return assistant_reply
|
52 |
|
53 |
# Resim ve/veya metin tabanlı sohbet fonksiyonu
|
54 |
+
def bot_streaming(message, max_new_tokens=250):
|
55 |
global history
|
|
|
|
|
56 |
|
57 |
user_message = message.get("text", "")
|
58 |
image = message.get("image", None)
|