mgokg commited on
Commit
6d37365
·
verified ·
1 Parent(s): 1605c68

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -2
app.py CHANGED
@@ -165,9 +165,16 @@ with gr.Blocks() as demo:
165
  ]
166
  )
167
 
168
-
 
 
 
 
 
 
 
169
  for verein in links_text:
170
- response = chat_session.send_message(f"kontakdaten für {verein}")
171
 
172
  kontakt.append(response.text)
173
 
 
165
  ]
166
  )
167
 
168
+ json_schema ='''
169
+ {
170
+ "vereinsname": "",
171
+ "email": "",
172
+ "adresse": "",
173
+ "telefon": ""
174
+ }
175
+ '''
176
  for verein in links_text:
177
+ response = chat_session.send_message(f"return a valid json object with kontakdaten für {verein}. here is the json schema: {json_schema}")
178
 
179
  kontakt.append(response.text)
180