eliwill commited on
Commit
6f4bf29
·
1 Parent(s): ca1fb48

Change color of title and background

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -57,16 +57,17 @@ 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=mountains_resized.jpg')} #title {color: white}") as demo:
61
  gr.Markdown("""
62
  # Ask a Philsopher
63
- """, elem_id="title"
 
64
  )
65
  with gr.Row():
66
  with gr.Column():
67
  inp1 = gr.Textbox(placeholder="Place your question here...", label="Ask a question")
68
  inp2 = gr.Dropdown(choices=["stoic", "krishnamurti"], value="stoic", label="Choose a philosopher")
69
- out_image = gr.Image()
70
 
71
  with gr.Column():
72
  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=".gradio-container {background-image: url('file=school_of_athens.jpg')} #title {color: #F0FFFF}") as demo:
61
  gr.Markdown("""
62
  # Ask a Philsopher
63
+ """,
64
+ elem_id="title"
65
  )
66
  with gr.Row():
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(visible=False)
71
 
72
  with gr.Column():
73
  out1 = gr.Textbox(