Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ def parse_links(prompt):
|
|
18 |
},
|
19 |
"optimizationMode": "balanced",
|
20 |
"focusMode": "webSearch",
|
21 |
-
"query": f"{prompt}. output format=json",
|
22 |
"history": [
|
23 |
["human", "Hi, how are you?"],
|
24 |
["assistant", "I am doing well, how can I help you today?"]
|
@@ -44,7 +44,7 @@ def parse_links(prompt):
|
|
44 |
# Erstelle die Gradio-Schnittstelle
|
45 |
with gr.Blocks() as demo:
|
46 |
gr.Markdown("# Perplexica WebSearch")
|
47 |
-
ort_input = gr.Textbox(label="Prompt", placeholder="
|
48 |
links_output = gr.JSON(label="Antwort")
|
49 |
# Button zum Starten der Parsung
|
50 |
button = gr.Button("senden")
|
|
|
18 |
},
|
19 |
"optimizationMode": "balanced",
|
20 |
"focusMode": "webSearch",
|
21 |
+
"query": f"contact details for {prompt}. output format=json",
|
22 |
"history": [
|
23 |
["human", "Hi, how are you?"],
|
24 |
["assistant", "I am doing well, how can I help you today?"]
|
|
|
44 |
# Erstelle die Gradio-Schnittstelle
|
45 |
with gr.Blocks() as demo:
|
46 |
gr.Markdown("# Perplexica WebSearch")
|
47 |
+
ort_input = gr.Textbox(label="Prompt", placeholder="Name des Vereins", value="Aero Club Bamberg")
|
48 |
links_output = gr.JSON(label="Antwort")
|
49 |
# Button zum Starten der Parsung
|
50 |
button = gr.Button("senden")
|