KishoreK commited on
Commit
128158c
·
1 Parent(s): b9934d6
Files changed (1) hide show
  1. app.py +2 -7
app.py CHANGED
@@ -10,11 +10,6 @@ For more information on `huggingface_hub` Inference API support, please check th
10
 
11
  def respond(
12
  message,
13
- history: list[tuple[str, str]],
14
- system_message,
15
- max_tokens,
16
- temperature,
17
- top_p,
18
  ):
19
  task_instruction = """
20
  You are an expert in composing functions. You are given a question and a set of possible functions.
@@ -96,11 +91,11 @@ If the given question lacks the parameters required by the function, also point
96
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
97
  """
98
  demo = gr.ChatInterface(
99
- respond,
100
  additional_inputs=[
101
  gr.Textbox(value="You are an expert in composing functions.", label="System message"),
102
  ],
103
- examples=["अमेरिका के राष्ट्रपति कौन है?"],
104
  description="This is ActionGemma, LAM with multi-lingual capabilities. currently this model is prompted with only 2 tools available : get_weather_api and search_api. Integrations for more api's will be coming soon."
105
  )
106
 
 
10
 
11
  def respond(
12
  message,
 
 
 
 
 
13
  ):
14
  task_instruction = """
15
  You are an expert in composing functions. You are given a question and a set of possible functions.
 
91
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
92
  """
93
  demo = gr.ChatInterface(
94
+ fn= respond,
95
  additional_inputs=[
96
  gr.Textbox(value="You are an expert in composing functions.", label="System message"),
97
  ],
98
+ # examples=["अमेरिका के राष्ट्रपति कौन है?"],
99
  description="This is ActionGemma, LAM with multi-lingual capabilities. currently this model is prompted with only 2 tools available : get_weather_api and search_api. Integrations for more api's will be coming soon."
100
  )
101