mgokg commited on
Commit
40e2967
·
verified ·
1 Parent(s): f893783

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -88,7 +88,7 @@ def llm(message):
88
  def qwen(jsondata):
89
  client = Client("Qwen/Qwen2.5-72B-Instruct")
90
  result = client.predict(
91
- query= f"return valid json \n {jsondata}",
92
  history=[],
93
  system="You are Qwen, created by Alibaba Cloud. You are a helpful assistant.",
94
  api_name="/model_chat"
@@ -145,6 +145,8 @@ def process_ort(ort):
145
  #vereine.append(json_data)
146
  vereine.append(result)
147
 
 
 
148
  return vereine
149
 
150
  for verein in links_text:
 
88
  def qwen(jsondata):
89
  client = Client("Qwen/Qwen2.5-72B-Instruct")
90
  result = client.predict(
91
+ query= f'return a json object with the keys: name,email,phone,website for each verein \n the values can be found here, leave blank if value is not available:\n {json_data} \n return a json object only. no text, no explanaition',
92
  history=[],
93
  system="You are Qwen, created by Alibaba Cloud. You are a helpful assistant.",
94
  api_name="/model_chat"
 
145
  #vereine.append(json_data)
146
  vereine.append(result)
147
 
148
+ jsondata = qwen(vereine)
149
+ return jsondata
150
  return vereine
151
 
152
  for verein in links_text: