Shreyas094 commited on
Commit
c6f42da
·
verified ·
1 Parent(s): b9eb6ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -19
app.py CHANGED
@@ -204,29 +204,12 @@ demo = gr.ChatInterface(
204
  gr.Dropdown(choices=MODELS, label="Select Model", value=MODELS[2]),
205
  gr.Slider(minimum=0.1, maximum=1.0, value=0.2, step=0.1, label="Temperature"),
206
  gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of API Calls"),
207
- gr.Checkbox(label="Use Embeddings", value=True),
208
  gr.Textbox(label="System Prompt", lines=5, value=DEFAULT_SYSTEM_PROMPT),
209
  ],
210
  title="AI-powered Web Search Assistant",
211
  description="Ask questions and get answers from web search results.",
212
- theme=gr.themes.Soft(
213
- primary_hue="orange",
214
- secondary_hue="amber",
215
- neutral_hue="gray",
216
- font=[gr.themes.GoogleFont("Exo"), "ui-sans-serif", "system-ui", "sans-serif"]
217
- ).set(
218
- body_background_fill_dark="#0c0505",
219
- block_background_fill_dark="#0c0505",
220
- block_border_width="1px",
221
- block_title_background_fill_dark="#1b0f0f",
222
- input_background_fill_dark="#140b0b",
223
- button_secondary_background_fill_dark="#140b0b",
224
- border_color_accent_dark="#1b0f0f",
225
- border_color_primary_dark="#1b0f0f",
226
- background_fill_secondary_dark="#0c0505",
227
- color_accent_soft_dark="transparent",
228
- code_background_fill_dark="#140b0b"
229
- ),
230
  css=css,
231
  examples=[
232
  ["What are the latest developments in artificial intelligence?"],
 
204
  gr.Dropdown(choices=MODELS, label="Select Model", value=MODELS[2]),
205
  gr.Slider(minimum=0.1, maximum=1.0, value=0.2, step=0.1, label="Temperature"),
206
  gr.Slider(minimum=1, maximum=5, value=1, step=1, label="Number of API Calls"),
207
+ gr.Checkbox(label="Use Embeddings", value=False),
208
  gr.Textbox(label="System Prompt", lines=5, value=DEFAULT_SYSTEM_PROMPT),
209
  ],
210
  title="AI-powered Web Search Assistant",
211
  description="Ask questions and get answers from web search results.",
212
+ theme=gr.Theme.from_hub("allenai/gradio-theme"),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
213
  css=css,
214
  examples=[
215
  ["What are the latest developments in artificial intelligence?"],