Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -49,7 +49,7 @@ def parse_links(prompt):
|
|
49 |
# Extract the message
|
50 |
#ergebnis = data.get('message')
|
51 |
ergebnis = response.json().get('message')
|
52 |
-
|
53 |
# Split the response to get the JSON part only
|
54 |
json_part = ergebnis.split('}\n')[0] + '}'
|
55 |
# Load the JSON part to validate it's correctly formatted
|
@@ -72,7 +72,7 @@ def parse_links(prompt):
|
|
72 |
# Erstelle die Gradio-Schnittstelle
|
73 |
with gr.Blocks() as demo:
|
74 |
gr.Markdown("# Perplexica WebSearch")
|
75 |
-
ort_input = gr.Textbox(label="Prompt", placeholder="prompt", value="
|
76 |
links_output = gr.Textbox(label="Antwort")
|
77 |
# Button zum Starten der Parsung
|
78 |
button = gr.Button("senden")
|
|
|
49 |
# Extract the message
|
50 |
#ergebnis = data.get('message')
|
51 |
ergebnis = response.json().get('message')
|
52 |
+
return ergebnis
|
53 |
# Split the response to get the JSON part only
|
54 |
json_part = ergebnis.split('}\n')[0] + '}'
|
55 |
# Load the JSON part to validate it's correctly formatted
|
|
|
72 |
# Erstelle die Gradio-Schnittstelle
|
73 |
with gr.Blocks() as demo:
|
74 |
gr.Markdown("# Perplexica WebSearch")
|
75 |
+
ort_input = gr.Textbox(label="Prompt", placeholder="prompt", value="Aero Club Bamberg E.V.")
|
76 |
links_output = gr.Textbox(label="Antwort")
|
77 |
# Button zum Starten der Parsung
|
78 |
button = gr.Button("senden")
|