Nymbo commited on
Commit
c9a8043
·
verified ·
1 Parent(s): 5c3a975

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -13
app.py CHANGED
@@ -41,7 +41,7 @@ client = AsyncClient(host='http://localhost:11434', timeout=120)
41
 
42
  HF_TOKEN = os.environ.get("HF_TOKEN", None)
43
 
44
- TITLE = "<h1><center>ollama-Chat</center></h1>"
45
 
46
  DESCRIPTION = f"""
47
  <center>
@@ -54,17 +54,6 @@ Type <em>/pull model_name</em> to pull model.
54
  </center>
55
  """
56
 
57
- CSS = """
58
- .duplicate-button {
59
- margin: auto !important;
60
- color: white !important;
61
- background: black !important;
62
- border-radius: 100vh !important;
63
- }
64
- h3 {
65
- text-align: center;
66
- }
67
- """
68
  INIT_SIGN = ""
69
 
70
  def init():
@@ -144,7 +133,7 @@ async def stream_chat(message: str, history: list, model: str, temperature: floa
144
 
145
  chatbot = gr.Chatbot(height=600, placeholder=DESCRIPTION)
146
 
147
- with gr.Blocks(css=CSS, theme="soft") as demo:
148
  gr.HTML(TITLE)
149
  gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
150
  gr.ChatInterface(
 
41
 
42
  HF_TOKEN = os.environ.get("HF_TOKEN", None)
43
 
44
+ TITLE = "<h1><center>Ollama Chat</center></h1>"
45
 
46
  DESCRIPTION = f"""
47
  <center>
 
54
  </center>
55
  """
56
 
 
 
 
 
 
 
 
 
 
 
 
57
  INIT_SIGN = ""
58
 
59
  def init():
 
133
 
134
  chatbot = gr.Chatbot(height=600, placeholder=DESCRIPTION)
135
 
136
+ with gr.Blocks(theme="Nymbo/Nymbo_Theme") as demo:
137
  gr.HTML(TITLE)
138
  gr.DuplicateButton(value="Duplicate Space for private use", elem_classes="duplicate-button")
139
  gr.ChatInterface(