Kajise commited on
Commit
04cc455
1 Parent(s): 5852b73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -7
app.py CHANGED
@@ -54,7 +54,7 @@ def search_ddg(question: str):
54
  def generate(instruction):
55
  # feeding_data = "\n" + search_ddg(instruction)
56
  # prompt = ins.format(question=instruction, data=feeding_data)
57
- prompt = ins.format(question=instruction)
58
  print(prompt)
59
 
60
  response = llm(prompt, stop=['<|im_start|>user', '<|im_end|>'])
@@ -75,12 +75,12 @@ def process_example(args):
75
 
76
  css = ".generating {visibility: hidden}"
77
 
78
- class PurpleTheme(Base):
79
  def __init__(
80
  self,
81
  *,
82
- primary_hue: colors.Color | str = colors.purple,
83
- secondary_hue: colors.Color | str = colors.red,
84
  neutral_hue: colors.Color | str = colors.neutral,
85
  spacing_size: sizes.Size | str = sizes.spacing_md,
86
  radius_size: sizes.Size | str = sizes.radius_md,
@@ -122,14 +122,14 @@ class PurpleTheme(Base):
122
  )
123
 
124
 
125
- custom_theme = PurpleTheme()
126
 
127
  with gr.Blocks(theme=custom_theme, analytics_enabled=False, css=css) as demo:
128
  with gr.Column():
129
  gr.Markdown(
130
- """ ## GPT4ALL
131
 
132
- 7b quantized 4bit (q4_0)
133
 
134
  Type in the box below and click the button to generate answers to your most pressing questions!
135
  """)
 
54
  def generate(instruction):
55
  # feeding_data = "\n" + search_ddg(instruction)
56
  # prompt = ins.format(question=instruction, data=feeding_data)
57
+ prompt = ins.format(question=instruction)
58
  print(prompt)
59
 
60
  response = llm(prompt, stop=['<|im_start|>user', '<|im_end|>'])
 
75
 
76
  css = ".generating {visibility: hidden}"
77
 
78
+ class TealTheme(Base):
79
  def __init__(
80
  self,
81
  *,
82
+ primary_hue: colors.Color | str = colors.teal,
83
+ secondary_hue: colors.Color | str = colors.cyan,
84
  neutral_hue: colors.Color | str = colors.neutral,
85
  spacing_size: sizes.Size | str = sizes.spacing_md,
86
  radius_size: sizes.Size | str = sizes.radius_md,
 
122
  )
123
 
124
 
125
+ custom_theme = TealTheme()
126
 
127
  with gr.Blocks(theme=custom_theme, analytics_enabled=False, css=css) as demo:
128
  with gr.Column():
129
  gr.Markdown(
130
+ """ ## Dolphin4ALL
131
 
132
+ 8x7b quantized 2bit (q4_0)
133
 
134
  Type in the box below and click the button to generate answers to your most pressing questions!
135
  """)