mgokg commited on
Commit
21ebbad
·
verified ·
1 Parent(s): 6c98b28

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -44,6 +44,7 @@ def predict(prompt):
44
  response_value = response.candidates[0].content.parts[0]
45
  # Entferne die Markdown-Formatierung (optional)
46
  #text_value = response_value.strip('```json\n').strip('```')
 
47
  return response_value
48
  return response
49
 
@@ -89,8 +90,8 @@ def websearch(prompt):
89
  # Create the Gradio interface
90
  with gr.Blocks(css=custom_css) as demo:
91
  with gr.Row():
92
- details_output = gr.Markdown(label="answer", elem_id="md")
93
- #details_output = gr.Textbox(label="Ausgabe", value = f"\n\n\n\n")
94
  with gr.Row():
95
  ort_input = gr.Textbox(label="prompt", placeholder="ask anything...")
96
  with gr.Row():
 
44
  response_value = response.candidates[0].content.parts[0]
45
  # Entferne die Markdown-Formatierung (optional)
46
  #text_value = response_value.strip('```json\n').strip('```')
47
+ response_value = gr.Markdown(response_value)
48
  return response_value
49
  return response
50
 
 
90
  # Create the Gradio interface
91
  with gr.Blocks(css=custom_css) as demo:
92
  with gr.Row():
93
+ #details_output = gr.Markdown(label="answer", elem_id="md")
94
+ details_output = gr.Textbox(label="Ausgabe", value = f"\n\n\n\n")
95
  with gr.Row():
96
  ort_input = gr.Textbox(label="prompt", placeholder="ask anything...")
97
  with gr.Row():