jadehardouin commited on
Commit
ead5edf
1 Parent(s): d28c4a5

Update How_to_contribute.md

Browse files
Files changed (1) hide show
  1. How_to_contribute.md +4 -4
How_to_contribute.md CHANGED
@@ -57,10 +57,10 @@ It can be a Dropdown with multiple choices for the user to make or a Textbox wit
57
 
58
  ```python
59
  def render(self):
60
- # Create as many Gradio components as you want to provide information or customization to the user
61
- # Put all their visibility to False at the beginning
62
- # Don't forget to put the interactive parameter of the component to False if the value is fixed
63
- self.model_parameter = gr.Dropdown(["Option 1", "Option 2"], value="Option 1", visible=False, interactive=True, label="Title for this parameter", info="Add some information to clarify specific aspects of your parameter")
64
  ```
65
  Then, still in the `render` function, you must instantiate your input and output cost/token. They are the key values needed to compute the cost/request of your AI model service.
66
  Note that the user can’t interact with these since they are the values you’ll have to provide from benchmark tests on your model.
 
57
 
58
  ```python
59
  def render(self):
60
+ # Create as many Gradio components as you want to provide information or customization to the user
61
+ # Put all their visibility to False at the beginning
62
+ # Don't forget to put the interactive parameter of the component to False if the value is fixed
63
+ self.model_parameter = gr.Dropdown(["Option 1", "Option 2"], value="Option 1", visible=False, interactive=True, label="Title for this parameter", info="Add some information to clarify specific aspects of your parameter")
64
  ```
65
  Then, still in the `render` function, you must instantiate your input and output cost/token. They are the key values needed to compute the cost/request of your AI model service.
66
  Note that the user can’t interact with these since they are the values you’ll have to provide from benchmark tests on your model.