KingNish commited on
Commit
e0362cb
1 Parent(s): 6cf979c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -97,7 +97,8 @@ def respond(message, history):
97
  user_prompt = message
98
  # Handle image processing
99
  if message["files"]:
100
- yield llava(message, history)
 
101
  else:
102
  functions_metadata = [
103
  {"type": "function", "function": {"name": "web_search", "description": "Search query on google", "parameters": {"type": "object", "properties": {"query": {"type": "string", "description": "web search query"}}, "required": ["query"]}}},
 
97
  user_prompt = message
98
  # Handle image processing
99
  if message["files"]:
100
+ streamer = llava(message, history)
101
+ yield streamer
102
  else:
103
  functions_metadata = [
104
  {"type": "function", "function": {"name": "web_search", "description": "Search query on google", "parameters": {"type": "object", "properties": {"query": {"type": "string", "description": "web search query"}}, "required": ["query"]}}},