Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -941,7 +941,7 @@ def update_click_state(click_state, caption, click_mode):
|
|
941 |
raise NotImplementedError
|
942 |
|
943 |
async def chat_input_callback(*args):
|
944 |
-
visual_chatgpt, chat_input, click_state, state, aux_state ,language , autoplay,gender,api_key,image_input,log_state,history,persona = args
|
945 |
message = chat_input["text"]
|
946 |
if persona == "Narrator":
|
947 |
prompt="Please help me answer the question with this painting {question} in {language}, with a response length of about {length} words.."
|
|
|
941 |
raise NotImplementedError
|
942 |
|
943 |
async def chat_input_callback(*args):
|
944 |
+
visual_chatgpt, chat_input, click_state, state, aux_state ,language ,length, autoplay,gender,api_key,image_input,log_state,history,persona = args
|
945 |
message = chat_input["text"]
|
946 |
if persona == "Narrator":
|
947 |
prompt="Please help me answer the question with this painting {question} in {language}, with a response length of about {length} words.."
|