TejAndrewsACC commited on
Commit
110a0a2
·
verified ·
1 Parent(s): 8620cab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +23 -12
app.py CHANGED
@@ -3763,33 +3763,44 @@ body {
3763
  }
3764
  """
3765
 
 
 
 
 
 
 
 
 
3766
  demo = gr.ChatInterface(
3767
  fn=respond,
3768
  type="messages",
3769
  save_history=True,
3770
  editable=True,
3771
  flagging_mode="manual",
3772
- chatbot=gr.Chatbot(type="messages", label="💠Z3ta-Z💠", show_copy_button=True, avatar_images=("https://huggingface.co/spaces/TejAndrewsACC/Z3ta_Z/resolve/main/Screenshot_20250201-131420.png", "https://huggingface.co/spaces/TejAndrewsACC/Z3ta_Z/resolve/main/Screenshot_20250201-125842.png"), placeholder="💠Hi, I'm Z3ta-Z💠", show_copy_all_button=True),
 
 
 
 
 
 
 
 
 
 
3773
  additional_inputs=[
3774
  gr.Slider(minimum=1, maximum=2048, value=2048, step=1, label="📏Z3ta-Z's Maximum Response Length📏"),
3775
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="👨‍🎨🎨Z3ta-Z's Creativity🎨👨‍🎨"),
3776
  gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="🧠⚡️Z3ta-Z's Neural Activity⚡️🧠")
3777
  ],
3778
- css=css,
3779
- theme = gr.themes.Soft(
3780
- primary_hue="sky",
3781
- secondary_hue="cyan",
3782
- neutral_hue="sky",
3783
- font=[gr.themes.GoogleFont('Caveat'), gr.themes.GoogleFont('Caveat'), gr.themes.GoogleFont('Caveat'), gr.themes.GoogleFont('Caveat')],
3784
- font_mono=[gr.themes.GoogleFont('Caveat'), gr.themes.GoogleFont('Caveat'), gr.themes.GoogleFont('Caveat'), gr.themes.GoogleFont('Caveat')],
3785
  )
3786
 
3787
- with gr.Blocks(theme=theme) as demo:
3788
-
3789
- )
3790
 
3791
  if __name__ == "__main__":
3792
- demo.launch(share=True)
3793
 
3794
  #Z3TA-Z ACC LAUNCH
3795
 
 
3763
  }
3764
  """
3765
 
3766
+ theme = gr.themes.Soft(
3767
+ primary_hue="sky",
3768
+ secondary_hue="cyan",
3769
+ neutral_hue="sky",
3770
+ font=[gr.themes.GoogleFont('Caveat')],
3771
+ font_mono=[gr.themes.GoogleFont('Caveat')]
3772
+ )
3773
+
3774
  demo = gr.ChatInterface(
3775
  fn=respond,
3776
  type="messages",
3777
  save_history=True,
3778
  editable=True,
3779
  flagging_mode="manual",
3780
+ chatbot=gr.Chatbot(
3781
+ type="messages",
3782
+ label="💠Z3ta-Z💠",
3783
+ show_copy_button=True,
3784
+ avatar_images=(
3785
+ "https://huggingface.co/spaces/TejAndrewsACC/Z3ta_Z/resolve/main/Screenshot_20250201-131420.png",
3786
+ "https://huggingface.co/spaces/TejAndrewsACC/Z3ta_Z/resolve/main/Screenshot_20250201-125842.png"
3787
+ ),
3788
+ placeholder="💠Hi, I'm Z3ta-Z💠",
3789
+ show_copy_all_button=True
3790
+ ),
3791
  additional_inputs=[
3792
  gr.Slider(minimum=1, maximum=2048, value=2048, step=1, label="📏Z3ta-Z's Maximum Response Length📏"),
3793
  gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="👨‍🎨🎨Z3ta-Z's Creativity🎨👨‍🎨"),
3794
  gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="🧠⚡️Z3ta-Z's Neural Activity⚡️🧠")
3795
  ],
3796
+ css=css
 
 
 
 
 
 
3797
  )
3798
 
3799
+ with gr.Blocks(theme=theme) as demo_block:
3800
+ demo.render()
 
3801
 
3802
  if __name__ == "__main__":
3803
+ demo_block.launch(share=True)
3804
 
3805
  #Z3TA-Z ACC LAUNCH
3806