Spaces:
Running
Running
Space-Face
commited on
Commit
•
4bca998
1
Parent(s):
d243a03
Update main.py
Browse files
main.py
CHANGED
@@ -4,9 +4,9 @@ class AIEndpoint:
|
|
4 |
def receivedMessage(self, message, user: sf.User, responder: sf.Responder):
|
5 |
if hasattr(user, 'chat'):
|
6 |
|
7 |
-
responder.respond(user.chat.ask(message))
|
8 |
else:
|
9 |
user.chat = ai.conversation(base_url="deepinfra", model="meta-llama/Llama-3.2-90B-Vision-Instruct")
|
10 |
-
responder.respond(user.chat.ask(message))
|
11 |
responder.close()
|
12 |
sf.start_server([AIEndpoint()])
|
|
|
4 |
def receivedMessage(self, message, user: sf.User, responder: sf.Responder):
|
5 |
if hasattr(user, 'chat'):
|
6 |
|
7 |
+
responder.respond(user.chat.ask(message).text)
|
8 |
else:
|
9 |
user.chat = ai.conversation(base_url="deepinfra", model="meta-llama/Llama-3.2-90B-Vision-Instruct")
|
10 |
+
responder.respond(user.chat.ask(message).text)
|
11 |
responder.close()
|
12 |
sf.start_server([AIEndpoint()])
|