Tonic commited on
Commit
663e20e
·
1 Parent(s): 9ff4cec

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -14,7 +14,7 @@ def Tulu(user_input):
14
  0.9, # Top-p (nucleus sampling)
15
  0.9, # Repetition penalty
16
  False,
17
- fn_index=0
18
  )
19
  api_name="tulu"
20
  return result
@@ -22,10 +22,11 @@ def Tulu(user_input):
22
  return f"An error occurred: {str(e)}"
23
 
24
  iface = gr.Interface(
 
25
  inputs=gr.Textbox(label="User Input"),
26
  outputs=gr.Textbox(label="Result"),
27
  title="👋🏻👋🏻Welcome to Tonic's 🌷Tulu2EasyChat",
28
  description="This app makes it easy for use [Tulu](https://huggingface.co/allenai/tulu-2-dpo-70b) and also to make a discordbot. Join us on our active [builder's server on discord](https://discord.gg/9XK7zXR7Ke) [add this space as a discord bot on your server](https://discord.com/oauth2/authorize?client_id=1176628808212828231&scope=bot+applications.commands&permissions=326417525824) ."
29
  )
30
 
31
- iface.launch()
 
14
  0.9, # Top-p (nucleus sampling)
15
  0.9, # Repetition penalty
16
  False,
17
+ fn_index=0
18
  )
19
  api_name="tulu"
20
  return result
 
22
  return f"An error occurred: {str(e)}"
23
 
24
  iface = gr.Interface(
25
+ fn=Tulu, # Add the Tulu function here
26
  inputs=gr.Textbox(label="User Input"),
27
  outputs=gr.Textbox(label="Result"),
28
  title="👋🏻👋🏻Welcome to Tonic's 🌷Tulu2EasyChat",
29
  description="This app makes it easy for use [Tulu](https://huggingface.co/allenai/tulu-2-dpo-70b) and also to make a discordbot. Join us on our active [builder's server on discord](https://discord.gg/9XK7zXR7Ke) [add this space as a discord bot on your server](https://discord.com/oauth2/authorize?client_id=1176628808212828231&scope=bot+applications.commands&permissions=326417525824) ."
30
  )
31
 
32
+ iface.launch()