Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -150,9 +150,6 @@ async def handle_chat(user_input):
|
|
150 |
|
151 |
generation_start_time = time.time()
|
152 |
response = await query_teapot(prompt, context, user_input)
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
generation_end_time = time.time()
|
157 |
|
158 |
debug_info = f"""
|
@@ -211,7 +208,7 @@ async def on_message(message):
|
|
211 |
|
212 |
# Create a thread from the sent message
|
213 |
if is_debug:
|
214 |
-
thread = await sent_message.create_thread(name=f"""Debug Thread: '{cleaned_message}'""", auto_archive_duration=60)
|
215 |
|
216 |
# Send a message in the created thread
|
217 |
await thread.send(debug_info)
|
|
|
150 |
|
151 |
generation_start_time = time.time()
|
152 |
response = await query_teapot(prompt, context, user_input)
|
|
|
|
|
|
|
153 |
generation_end_time = time.time()
|
154 |
|
155 |
debug_info = f"""
|
|
|
208 |
|
209 |
# Create a thread from the sent message
|
210 |
if is_debug:
|
211 |
+
thread = await sent_message.create_thread(name=f"""Debug Thread: '{cleaned_message[:80]}'""", auto_archive_duration=60)
|
212 |
|
213 |
# Send a message in the created thread
|
214 |
await thread.send(debug_info)
|