mgokg commited on
Commit
cf15a41
·
verified ·
1 Parent(s): 2255b15

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -62,15 +62,15 @@ scheme = """
62
  {"name":"","email":"","website":""}
63
  """
64
 
65
- def llama(message):
66
 
67
  client = Client("mgokg/selenium-screenshot-gradio")
68
  result = client.predict(
69
- message=f"{message}",
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
- return result
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'