Spaces:
BAAI
/
Running on L40S

ryanzhangfan commited on
Commit
0c61629
1 Parent(s): db312d6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -46,7 +46,6 @@ VQ_HUB = "BAAI/Emu3-VisionTokenizer"
46
 
47
 
48
  # uncomment to use gen model
49
- """
50
  # Prepare models and processors
51
  # Emu3-Gen model and processor
52
  gen_model = AutoModelForCausalLM.from_pretrained(
@@ -216,6 +215,9 @@ def chat(history, user_input, user_image):
216
 
217
  return history, history, gr.update(value=None)
218
 
 
 
 
219
  def clear_input():
220
  return gr.update(value="")
221
 
 
46
 
47
 
48
  # uncomment to use gen model
 
49
  # Prepare models and processors
50
  # Emu3-Gen model and processor
51
  gen_model = AutoModelForCausalLM.from_pretrained(
 
215
 
216
  return history, history, gr.update(value=None)
217
 
218
+ # comment to here to disable chat
219
+ """
220
+
221
  def clear_input():
222
  return gr.update(value="")
223