Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -7,9 +7,6 @@ import os
|
|
7 |
|
8 |
secreturl = os.environ.get('secret_url')
|
9 |
|
10 |
-
# CSS-Stil für den Markdown-Container
|
11 |
-
demo=""
|
12 |
-
|
13 |
def parse_links(prompt):
|
14 |
#anfrage ='fill in the missing contact information. do not reference the json object. do not use html tags inside the json object. it must be valid json. do not return explanaitons or any other text. thanks for your efforts:)'
|
15 |
Name=prompt
|
@@ -76,12 +73,11 @@ def clear():
|
|
76 |
clear=""
|
77 |
return clear
|
78 |
|
79 |
-
demo.css = """# markdown_output {height: 500px; overflow: auto; }"""
|
80 |
# Erstelle die Gradio-Schnittstelle
|
81 |
with gr.Blocks() as demo:
|
82 |
gr.Markdown("# Perplexica WebSearch")
|
83 |
ort_input = gr.Textbox(label="Prompt", placeholder="ask anything...", value="")
|
84 |
-
links_output = gr.Markdown(label="Antwort",elem_id="markdown_output")
|
85 |
|
86 |
with gr.Row():
|
87 |
clearbutton = gr.Button("clear")
|
|
|
7 |
|
8 |
secreturl = os.environ.get('secret_url')
|
9 |
|
|
|
|
|
|
|
10 |
def parse_links(prompt):
|
11 |
#anfrage ='fill in the missing contact information. do not reference the json object. do not use html tags inside the json object. it must be valid json. do not return explanaitons or any other text. thanks for your efforts:)'
|
12 |
Name=prompt
|
|
|
73 |
clear=""
|
74 |
return clear
|
75 |
|
|
|
76 |
# Erstelle die Gradio-Schnittstelle
|
77 |
with gr.Blocks() as demo:
|
78 |
gr.Markdown("# Perplexica WebSearch")
|
79 |
ort_input = gr.Textbox(label="Prompt", placeholder="ask anything...", value="")
|
80 |
+
links_output = gr.Markdown(label="Antwort",elem_id="markdown_output {height: 500px; overflow: auto; }")
|
81 |
|
82 |
with gr.Row():
|
83 |
clearbutton = gr.Button("clear")
|