Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -39,8 +39,7 @@ def parse_links(prompt):
|
|
39 |
# Extract the message
|
40 |
#ergebnis = data.get('message')
|
41 |
#return ergebnis
|
42 |
-
|
43 |
-
return response.json()
|
44 |
# Rückgabe als Dictionary, um es mit gr.JSON kompatibel zu machen
|
45 |
#return {"body_text": body_text}
|
46 |
|
@@ -53,7 +52,7 @@ def parse_links(prompt):
|
|
53 |
with gr.Blocks() as demo:
|
54 |
gr.Markdown("# Perplexica WebSearch")
|
55 |
ort_input = gr.Textbox(label="Prompt", placeholder="prompt", value="contact details Aero Club Bamberg e.v.")
|
56 |
-
links_output = gr.
|
57 |
# Button zum Starten der Parsung
|
58 |
button = gr.Button("senden")
|
59 |
# Verbinde den Button mit der Funktion
|
|
|
39 |
# Extract the message
|
40 |
#ergebnis = data.get('message')
|
41 |
#return ergebnis
|
42 |
+
return response.json().get('message')
|
|
|
43 |
# Rückgabe als Dictionary, um es mit gr.JSON kompatibel zu machen
|
44 |
#return {"body_text": body_text}
|
45 |
|
|
|
52 |
with gr.Blocks() as demo:
|
53 |
gr.Markdown("# Perplexica WebSearch")
|
54 |
ort_input = gr.Textbox(label="Prompt", placeholder="prompt", value="contact details Aero Club Bamberg e.v.")
|
55 |
+
links_output = gr.Textbox(label="Antwort")
|
56 |
# Button zum Starten der Parsung
|
57 |
button = gr.Button("senden")
|
58 |
# Verbinde den Button mit der Funktion
|