Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def main(question, philosopher):
|
|
57 |
out_image = "marcus-aurelius.jpg"
|
58 |
return ask_philosopher(philosopher, question), get_similar_quotes(philosopher, question), out_image
|
59 |
|
60 |
-
with gr.Blocks(css=".gradio-container {background-image: url('file=
|
61 |
gr.Markdown("""
|
62 |
# Ask a Philsopher
|
63 |
""",
|
@@ -67,7 +67,7 @@ with gr.Blocks(css=".gradio-container {background-image: url('file=school_of_ath
|
|
67 |
with gr.Column():
|
68 |
inp1 = gr.Textbox(placeholder="Place your question here...", label="Ask a question")
|
69 |
inp2 = gr.Dropdown(choices=["stoic", "krishnamurti"], value="stoic", label="Choose a philosopher")
|
70 |
-
out_image = gr.Image(
|
71 |
|
72 |
with gr.Column():
|
73 |
out1 = gr.Textbox(
|
|
|
57 |
out_image = "marcus-aurelius.jpg"
|
58 |
return ask_philosopher(philosopher, question), get_similar_quotes(philosopher, question), out_image
|
59 |
|
60 |
+
with gr.Blocks(css="#title {color: #F0FFFF} .gradio-container {background-image: url('file=mountains.jpg')}") as demo:
|
61 |
gr.Markdown("""
|
62 |
# Ask a Philsopher
|
63 |
""",
|
|
|
67 |
with gr.Column():
|
68 |
inp1 = gr.Textbox(placeholder="Place your question here...", label="Ask a question")
|
69 |
inp2 = gr.Dropdown(choices=["stoic", "krishnamurti"], value="stoic", label="Choose a philosopher")
|
70 |
+
out_image = gr.Image(label="Picture")
|
71 |
|
72 |
with gr.Column():
|
73 |
out1 = gr.Textbox(
|