mgokg commited on
Commit
e1ff041
·
verified ·
1 Parent(s): 2c076d1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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
- ergebnis=gr.Markdown()
53
  return ergebnis
54
  # Split the response to get the JSON part only
55
  json_part = ergebnis.split('}\n')[0] + '}'
@@ -73,7 +73,7 @@ def parse_links(prompt):
73
  # Erstelle die Gradio-Schnittstelle
74
  with gr.Blocks() as demo:
75
  gr.Markdown("# Perplexica WebSearch")
76
- ort_input = gr.Textbox(label="Prompt", placeholder="prompt", value="Aero Club Bamberg E.V.")
77
  links_output = gr.Textbox(label="Antwort")
78
  # Button zum Starten der Parsung
79
  button = gr.Button("senden")
 
49
  # Extract the message
50
  #ergebnis = data.get('message')
51
  ergebnis = response.json().get('message')
52
+ #ergebnis=gr.Markdown()
53
  return ergebnis
54
  # Split the response to get the JSON part only
55
  json_part = ergebnis.split('}\n')[0] + '}'
 
73
  # Erstelle die Gradio-Schnittstelle
74
  with gr.Blocks() as demo:
75
  gr.Markdown("# Perplexica WebSearch")
76
+ ort_input = gr.Textbox(label="Prompt", placeholder="prompt", value="Aero Club Bamberg e.V.")
77
  links_output = gr.Textbox(label="Antwort")
78
  # Button zum Starten der Parsung
79
  button = gr.Button("senden")