Spaces:
Building
Building
Update app.py
Browse files
app.py
CHANGED
@@ -97,7 +97,8 @@ def respond(message, history):
|
|
97 |
user_prompt = message
|
98 |
# Handle image processing
|
99 |
if message["files"]:
|
100 |
-
|
|
|
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"]}}},
|