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 |
-
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
|
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")
|