vtrv.vls commited on
Commit
7ad9b82
·
1 Parent(s): 1e54008

Clear inputs on model change

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -47,7 +47,7 @@ def model_gen(content, model_type: str, chat_history):
47
  return gen(content, chat_history)
48
 
49
  def clear_chat(chatbot, msg):
50
- return '', []
51
 
52
  MODEL_LIB = {'RUBASE': giga_gen, 'TINYLLAMA': tiny_gen, 'QWEN2INS1B': qwen_gen}
53
 
 
47
  return gen(content, chat_history)
48
 
49
  def clear_chat(chatbot, msg):
50
+ return [], ''
51
 
52
  MODEL_LIB = {'RUBASE': giga_gen, 'TINYLLAMA': tiny_gen, 'QWEN2INS1B': qwen_gen}
53