Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -2,9 +2,6 @@ import gradio as gr
|
|
2 |
import time
|
3 |
|
4 |
def bot_response_one(message, history):
|
5 |
-
print("\n=== Bot Response Function ===")
|
6 |
-
print(f"Received message: {message}")
|
7 |
-
|
8 |
history = history or []
|
9 |
|
10 |
# Regular message without metadata
|
@@ -134,9 +131,6 @@ with gr.Blocks(fill_height=True) as demo:
|
|
134 |
|
135 |
|
136 |
def user_one(user_message, history):
|
137 |
-
print("\n=== User Message Function ===")
|
138 |
-
print(f"User message: {user_message}")
|
139 |
-
|
140 |
if user_message.strip():
|
141 |
history.append(gr.ChatMessage(role="user", content=user_message))
|
142 |
return "", history
|
|
|
2 |
import time
|
3 |
|
4 |
def bot_response_one(message, history):
|
|
|
|
|
|
|
5 |
history = history or []
|
6 |
|
7 |
# Regular message without metadata
|
|
|
131 |
|
132 |
|
133 |
def user_one(user_message, history):
|
|
|
|
|
|
|
134 |
if user_message.strip():
|
135 |
history.append(gr.ChatMessage(role="user", content=user_message))
|
136 |
return "", history
|