mgokg commited on
Commit
3379f87
·
verified ·
1 Parent(s): 6d37365

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -10
app.py CHANGED
@@ -138,8 +138,8 @@ with gr.Blocks() as demo:
138
  with gr.Row():
139
  ort_input = gr.Textbox(label="Ort", placeholder="Gib den Namen des Ortes ein")
140
  with gr.Row():
141
- #details_output = gr.DataFrame(label="Ausgabe")
142
- details_output = gr.Textbox(label="Ausgabe", value = f"\n\n\n\n")
143
 
144
  def process_ort(ort):
145
  links_text, links = parse_links_and_content(ort)
@@ -165,14 +165,8 @@ with gr.Blocks() as demo:
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
 
 
138
  with gr.Row():
139
  ort_input = gr.Textbox(label="Ort", placeholder="Gib den Namen des Ortes ein")
140
  with gr.Row():
141
+ details_output = gr.JSON(label="Ausgabe")
142
+ #details_output = gr.Textbox(label="Ausgabe", value = f"\n\n\n\n")
143
 
144
  def process_ort(ort):
145
  links_text, links = parse_links_and_content(ort)
 
165
  ]
166
  )
167
 
168
+ json_schema ='{"vereinsname": "", "email": "", "adresse": "","telefon": ""}'
169
+
 
 
 
 
 
 
170
  for verein in links_text:
171
  response = chat_session.send_message(f"return a valid json object with kontakdaten für {verein}. here is the json schema: {json_schema}")
172