nruto commited on
Commit
461da53
·
verified ·
1 Parent(s): ebdd93a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -12
app.py CHANGED
@@ -3,7 +3,6 @@ from huggingface_hub import InferenceClient
3
 
4
  client = InferenceClient("Qwen/Qwen2.5-Coder-32B-Instruct")
5
 
6
-
7
  def respond(
8
  message,
9
  history: list[tuple[str, str]],
@@ -35,14 +34,13 @@ def respond(
35
 
36
  response += token
37
  yield response
38
- # Custom CSS to change the title color
39
- opq = """
40
- .gradio-container h1 {
41
- color: red !important;
42
- }
43
- """
44
-
45
 
 
 
 
 
 
 
46
 
47
  demo = gr.ChatInterface(
48
  respond,
@@ -59,10 +57,9 @@ demo = gr.ChatInterface(
59
  step=0.05,
60
  label="Top-p (nucleus sampling)",
61
  ),
62
- ], css=opq
63
-
64
  )
65
 
66
-
67
  if __name__ == "__main__":
68
- demo.launch()
 
3
 
4
  client = InferenceClient("Qwen/Qwen2.5-Coder-32B-Instruct")
5
 
 
6
  def respond(
7
  message,
8
  history: list[tuple[str, str]],
 
34
 
35
  response += token
36
  yield response
 
 
 
 
 
 
 
37
 
38
+ # Custom CSS to change the title color
39
+ opq = """
40
+ .gradio-container h1 {
41
+ color: red !important;
42
+ }
43
+ """
44
 
45
  demo = gr.ChatInterface(
46
  respond,
 
57
  step=0.05,
58
  label="Top-p (nucleus sampling)",
59
  ),
60
+ ],
61
+ css=opq # Add the custom CSS here
62
  )
63
 
 
64
  if __name__ == "__main__":
65
+ demo.launch(share=True)