Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,7 @@ def ground_search(prompt):
|
|
66 |
return response.text
|
67 |
|
68 |
def duckduckgo(search_term):
|
69 |
-
url = f"https://duckduckgo.com
|
70 |
try:
|
71 |
response = requests.get(url)
|
72 |
response.raise_for_status() # Raises HTTPError for bad responses
|
@@ -148,8 +148,8 @@ def predict(prompt):
|
|
148 |
# Create the Gradio interface
|
149 |
with gr.Blocks(css=custom_css) as demo:
|
150 |
with gr.Row():
|
151 |
-
details_output = gr.Markdown(label="answer", elem_id="md")
|
152 |
-
|
153 |
with gr.Row():
|
154 |
ort_input = gr.Textbox(label="prompt", placeholder="ask anything...")
|
155 |
#audio_input=gr.Microphone(type="filepath")
|
|
|
66 |
return response.text
|
67 |
|
68 |
def duckduckgo(search_term):
|
69 |
+
url = f"https://duckduckgo.com?q={search_term}"
|
70 |
try:
|
71 |
response = requests.get(url)
|
72 |
response.raise_for_status() # Raises HTTPError for bad responses
|
|
|
148 |
# Create the Gradio interface
|
149 |
with gr.Blocks(css=custom_css) as demo:
|
150 |
with gr.Row():
|
151 |
+
#details_output = gr.Markdown(label="answer", elem_id="md")
|
152 |
+
details_output = gr.Textbox(label="Ausgabe", value = f"\n\n\n\n")
|
153 |
with gr.Row():
|
154 |
ort_input = gr.Textbox(label="prompt", placeholder="ask anything...")
|
155 |
#audio_input=gr.Microphone(type="filepath")
|