mgokg commited on
Commit
7ff4fbc
·
verified ·
1 Parent(s): 201f13e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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="prompt")
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")