Darshan-BugendaiTech commited on
Commit
c83801c
β€’
1 Parent(s): 43ab5c4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -3
app.py CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
3
  from llama_index import download_loader, ServiceContext, VectorStoreIndex
4
  from llama_index.embeddings import HuggingFaceEmbedding
5
  from llama_index import Prompt
 
6
  import torch
7
  device = torch.device("cpu")
8
 
@@ -67,11 +68,11 @@ def chat(user_input,history):
67
  def clear_everything():
68
  return (None, None, None)
69
 
70
- # Adding themes in UI Interface
71
- custom_theme = gr.themes.Monochrome()
72
 
73
  # UI Design and Logic
74
- with gr.Blocks(theme=custom_theme, title="Marketing Email Generator") as demo:
75
  gr.HTML("<h1 style='text-align: center;'>Marketing Email Generator</h1>")
76
  gr.Markdown("Drop you Excel file here πŸ‘‡ and ask your query about it!")
77
  with gr.Row():
 
3
  from llama_index import download_loader, ServiceContext, VectorStoreIndex
4
  from llama_index.embeddings import HuggingFaceEmbedding
5
  from llama_index import Prompt
6
+ from gradio.utils.css import load_stylesheet
7
  import torch
8
  device = torch.device("cpu")
9
 
 
68
  def clear_everything():
69
  return (None, None, None)
70
 
71
+ """# Adding themes in UI Interface
72
+ custom_theme = gr.themes.Monochrome()"""
73
 
74
  # UI Design and Logic
75
+ with gr.Blocks(theme=load_stylesheet("my-monochrome-theme.css"),title="Marketing Email Generator") as demo:
76
  gr.HTML("<h1 style='text-align: center;'>Marketing Email Generator</h1>")
77
  gr.Markdown("Drop you Excel file here πŸ‘‡ and ask your query about it!")
78
  with gr.Row():