Spaces:
Running
Running
Commit ·
37f7787
1
Parent(s): a2f07a4
keep debug message
Browse files178 unmodified lines179180181182182183184185186187189190188189190191178 unmodified lines gen_thread.start()
assistant_text = '' first = True for chunk in streamer: if cancel_event.is_set(): break assistant_text += chunk history[-1]['content'] = assistant_text # Show debug only once yield history, (debug if first else '') first = False yield history, debug gen_thread.join() except Exception as e: history[-1]['content'] = f"Error: {e}"app.py+1-3