Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -46,6 +46,7 @@ VQ_HUB = "BAAI/Emu3-VisionTokenizer"
|
|
| 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,8 +216,8 @@ def chat(history, user_input, user_image):
|
|
| 215 |
|
| 216 |
return history, history, gr.update(value=None)
|
| 217 |
|
| 218 |
-
#
|
| 219 |
-
"""
|
| 220 |
|
| 221 |
def clear_input():
|
| 222 |
return gr.update(value="")
|
|
|
|
| 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 |
|
| 217 |
return history, history, gr.update(value=None)
|
| 218 |
|
| 219 |
+
# uncomment to here to disable chat
|
| 220 |
+
# """
|
| 221 |
|
| 222 |
def clear_input():
|
| 223 |
return gr.update(value="")
|