ldhldh commited on
Commit
4d99237
1 Parent(s): a42689d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -32,7 +32,7 @@ def mbti(x):
32
 
33
  def chat(x):
34
  result = gradio_client.predict(
35
- user_input,# str representing input in 'User input' Textbox component
36
  0.9, # float, representing input in 'Top-p (nucleus sampling)' Slider component
37
  50, # int, representing input in 'Top-k (nucleus sampling)' Slider component
38
  0.7, # float, representing input in 'Temperature' Slider component
@@ -44,7 +44,7 @@ def chat(x):
44
 
45
  def yn(x):
46
  result = gradio_client.predict(
47
- text, # str representing input in 'User input' Textbox component
48
  fn_index=2
49
  )
50
  return result
 
32
 
33
  def chat(x):
34
  result = gradio_client.predict(
35
+ x,# str representing input in 'User input' Textbox component
36
  0.9, # float, representing input in 'Top-p (nucleus sampling)' Slider component
37
  50, # int, representing input in 'Top-k (nucleus sampling)' Slider component
38
  0.7, # float, representing input in 'Temperature' Slider component
 
44
 
45
  def yn(x):
46
  result = gradio_client.predict(
47
+ x, # str representing input in 'User input' Textbox component
48
  fn_index=2
49
  )
50
  return result