mgokg commited on
Commit
e654979
·
verified ·
1 Parent(s): a922844

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -4
app.py CHANGED
@@ -62,7 +62,16 @@ scheme = """
62
  {"name":"","email":"","website":""}
63
  """
64
 
65
- def llama(message):
 
 
 
 
 
 
 
 
 
66
  client = Client("AiActivity/AI-Assistant")
67
  result = client.predict(
68
  message={"text":f"instruction: return a valid json object only, no comments or explanaition, fill in the missing information. use this json scheme.\n {scheme}\n leave blank if information is not verfügbar. here is the information for the values:\n{message}","files":[]},
@@ -138,9 +147,12 @@ def process_ort(ort):
138
  vereine = []
139
 
140
  for verein in links_text:
141
- prompt=f"kontaktdaten {verein}",
142
- result = perplexica_search(prompt)
143
- print(result)
 
 
 
144
  #json_data = llama(result)
145
  #vereine.append(json_data)
146
  vereine.append(result)
 
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
+
74
+
75
  client = Client("AiActivity/AI-Assistant")
76
  result = client.predict(
77
  message={"text":f"instruction: return a valid json object only, no comments or explanaition, fill in the missing information. use this json scheme.\n {scheme}\n leave blank if information is not verfügbar. here is the information for the values:\n{message}","files":[]},
 
147
  vereine = []
148
 
149
  for verein in links_text:
150
+
151
+ prompt=f"{verein}",
152
+ result = llama(prompt)
153
+ #return ergebnis
154
+ #result = perplexica_search(prompt)
155
+ #print(result)
156
  #json_data = llama(result)
157
  #vereine.append(json_data)
158
  vereine.append(result)