alex-abb commited on
Commit
a2593ad
·
verified ·
1 Parent(s): 7c68cfd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -9,7 +9,6 @@ client = InferenceClient("HuggingFaceH4/zephyr-7b-beta")
9
 
10
 
11
 
12
-
13
 
14
  def respond(
15
  message,
@@ -40,6 +39,8 @@ def respond(
40
  stream=True,
41
  temperature=temperature,
42
  top_p=top_p,
 
 
43
  ):
44
  token = message.choices[0].delta.content
45
 
@@ -61,7 +62,6 @@ demo = gr.ChatInterface(
61
  value=0.95,
62
  step=0.05,
63
  label="Top-p (nucleus sampling)",
64
- show_copy_button = True,
65
 
66
  ),
67
  ],
 
9
 
10
 
11
 
 
12
 
13
  def respond(
14
  message,
 
39
  stream=True,
40
  temperature=temperature,
41
  top_p=top_p,
42
+ show_copy_button=True
43
+
44
  ):
45
  token = message.choices[0].delta.content
46
 
 
62
  value=0.95,
63
  step=0.05,
64
  label="Top-p (nucleus sampling)",
 
65
 
66
  ),
67
  ],