Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +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 |
-
response_value = gr.Markdown(response_value)
|
| 48 |
return response_value
|
| 49 |
return response
|
| 50 |
|
|
@@ -90,8 +90,8 @@ def websearch(prompt):
|
|
| 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 |
-
|
| 95 |
with gr.Row():
|
| 96 |
ort_input = gr.Textbox(label="prompt", placeholder="ask anything...")
|
| 97 |
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():
|