mgokg commited on
Commit
1577398
·
verified ·
1 Parent(s): 7145d29

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
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/api?q={search_term}"
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
- #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")
 
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")