kapil14 commited on
Commit
dfb69dc
·
verified ·
1 Parent(s): 9bd7a5a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -245,7 +245,11 @@ def ask():
245
  except Exception:
246
  traceback.print_exc()
247
 
248
-
 
 
 
 
249
 
250
  return jsonify({"answer": answer["output_text"]})
251
  except Exception as e:
 
245
  except Exception:
246
  traceback.print_exc()
247
 
248
+ # Clear session data for a fresh start next time
249
+ try:
250
+ session.clear()
251
+ except Exception:
252
+ pass
253
 
254
  return jsonify({"answer": answer["output_text"]})
255
  except Exception as e: