CoolFace
Apppublic

vineyard03/Code-Repair-With-LLMs

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes
storage.py12 linesDownload Raw Back to utils
1import gradio as gr2 3def save_jwt_to_session(response):4    """Extracts session_token and session_id from API response and saves them in Gradio State."""5    session_token = response.get("session_token")6    session_id = response.get("session_id")7 8    if session_token and session_id:9        return gr.update(value=session_token), gr.update(value=session_id)10    11    return gr.update(), gr.update()12