Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -62,15 +62,15 @@ scheme = """
|
|
62 |
{"name":"","email":"","website":""}
|
63 |
"""
|
64 |
|
65 |
-
def llama(
|
66 |
|
67 |
client = Client("mgokg/selenium-screenshot-gradio")
|
68 |
result = client.predict(
|
69 |
-
message=f"{
|
70 |
api_name="/predict"
|
71 |
)
|
72 |
-
print(result)
|
73 |
-
|
74 |
|
75 |
client = Client("AiActivity/AI-Assistant")
|
76 |
result = client.predict(
|
@@ -78,7 +78,7 @@ def llama(message):
|
|
78 |
api_name="/chat"
|
79 |
)
|
80 |
print(result)
|
81 |
-
|
82 |
|
83 |
def llm(message):
|
84 |
message = f'return a json object with the keys: name,email,phone,website \n the values can be found here, leave blank if value is not available:\n {message} \n return a json object only. no text, no explanaition'
|
|
|
62 |
{"name":"","email":"","website":""}
|
63 |
"""
|
64 |
|
65 |
+
def llama(messages):
|
66 |
|
67 |
client = Client("mgokg/selenium-screenshot-gradio")
|
68 |
result = client.predict(
|
69 |
+
message=f"{messages}",
|
70 |
api_name="/predict"
|
71 |
)
|
72 |
+
#print(result)
|
73 |
+
return result
|
74 |
|
75 |
client = Client("AiActivity/AI-Assistant")
|
76 |
result = client.predict(
|
|
|
78 |
api_name="/chat"
|
79 |
)
|
80 |
print(result)
|
81 |
+
|
82 |
|
83 |
def llm(message):
|
84 |
message = f'return a json object with the keys: name,email,phone,website \n the values can be found here, leave blank if value is not available:\n {message} \n return a json object only. no text, no explanaition'
|