sophcheng commited on
Commit
dc70695
·
verified ·
1 Parent(s): d029760

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -19
app.py CHANGED
@@ -160,7 +160,7 @@ summary="""
160
  #return "https://cdn-uploads.huggingface.co/production/uploads/6668622b72b61ba78fe7d4bb/PkWjNxvGm9MOqGkZdiT4e.png"
161
  theme = gr.themes.Monochrome(
162
  ).set(
163
- body_text_color='#054A91',
164
  body_text_color_dark='#000000',
165
  background_fill_primary='#81A4CD', # BACKGROUND
166
  background_fill_primary_dark='#81A4CD',
@@ -176,23 +176,6 @@ theme = gr.themes.Monochrome(
176
 
177
  )
178
 
179
- leftTheme = gr.themes.Monochrome(
180
- ).set(
181
- body_text_color='#FFFFFF',
182
- body_text_color_dark='#000000',
183
- background_fill_primary='#81A4CD', # BACKGROUND
184
- background_fill_primary_dark='#81A4CD',
185
- background_fill_secondary='#884e4c', # BUTTON HOVER
186
- background_fill_secondary_dark='#EDDEC0', #LOADING BAR
187
- border_color_accent='#EDDEC0',
188
- border_color_accent_dark='#EDDEC0',
189
- border_color_accent_subdued='#EDDEC0',
190
- border_color_primary='#F17300',
191
- block_border_color='#F17300',
192
- button_primary_background_fill='#054A91',
193
- button_primary_background_fill_dark='#884e4c'
194
-
195
- )
196
  # Setup the Gradio Blocks interface with custom layout components
197
  with gr.Blocks(theme=theme) as demo:
198
  with gr.Row(equal_height=True):
@@ -213,7 +196,7 @@ with gr.Blocks(theme=theme) as demo:
213
  gr.Markdown(headline)
214
  question = gr.Textbox(label="Your question:", placeholder="What do you want to ask about?")
215
  submit_button = gr.Button("Submit!")
216
- answer = gr.Textbox(label="AI-nswer:", placeholder="AI-nstein will respond here...", interactive=False, lines=10)
217
  submit_button.click(fn=query_model, inputs=question, outputs=answer)
218
  gr.Image("einy.png", container = False, show_share_button = False, show_download_button = False, label="output", show_label=True, elem_id="output_image", scale=0, width=500)
219
 
 
160
  #return "https://cdn-uploads.huggingface.co/production/uploads/6668622b72b61ba78fe7d4bb/PkWjNxvGm9MOqGkZdiT4e.png"
161
  theme = gr.themes.Monochrome(
162
  ).set(
163
+ body_text_color='#064381',
164
  body_text_color_dark='#000000',
165
  background_fill_primary='#81A4CD', # BACKGROUND
166
  background_fill_primary_dark='#81A4CD',
 
176
 
177
  )
178
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
179
  # Setup the Gradio Blocks interface with custom layout components
180
  with gr.Blocks(theme=theme) as demo:
181
  with gr.Row(equal_height=True):
 
196
  gr.Markdown(headline)
197
  question = gr.Textbox(label="Your question:", placeholder="What do you want to ask about?")
198
  submit_button = gr.Button("Submit!")
199
+ answer = gr.Textbox(label="AI-nswer:", placeholder="Welcome to AI-nstein! Ask me anything about AI ML, and helpful tools you may want to use!", interactive=False, lines=10)
200
  submit_button.click(fn=query_model, inputs=question, outputs=answer)
201
  gr.Image("einy.png", container = False, show_share_button = False, show_download_button = False, label="output", show_label=True, elem_id="output_image", scale=0, width=500)
202