Moritz Stephan commited on
Commit
806f2ad
·
1 Parent(s): 1f7ec24
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -50,16 +50,20 @@ demo = gr.Interface(
50
  This is a demo of Contextualized Critiques with Constrained Preference Optimization (C3PO). See the project website [here](<insert link>), repo [here](<insert link>), and the paper [here](<insert link>).
51
 
52
  Selecting a feedback in the dropdown and enabling the "Use Feedback Adapter" checkbox will add the respective adapter to the model. The model will then use the feedback to generate the completion.
 
 
 
53
  """
54
  ),
55
  gr.Textbox(
56
  placeholder="Enter a prompt...", label="Prompt"
57
  ),
58
  gr.Dropdown(
59
- choices=dropdown_options, label="Feedback", info="Will add the adapter for the respective feedback to the model."
 
60
  ),
61
  gr.Checkbox(
62
- label="Use Feedback Adapter", default=True, info="Enables the feedback adapter."
63
  )
64
  ],
65
  "text",
 
50
  This is a demo of Contextualized Critiques with Constrained Preference Optimization (C3PO). See the project website [here](<insert link>), repo [here](<insert link>), and the paper [here](<insert link>).
51
 
52
  Selecting a feedback in the dropdown and enabling the "Use Feedback Adapter" checkbox will add the respective adapter to the model. The model will then use the feedback to generate the completion.
53
+
54
+ ### Warning
55
+ The model is hosted on [Modal](https://www.modal.com/). While Modal provides fast cold-start times, the model container might need to spin up if it's not already running. This might take up to a minute on the first request.
56
  """
57
  ),
58
  gr.Textbox(
59
  placeholder="Enter a prompt...", label="Prompt"
60
  ),
61
  gr.Dropdown(
62
+ choices=dropdown_options, label="Feedback", info="Will add the adapter for the respective feedback to the model.",
63
+ value=dropdown_options[0][1]
64
  ),
65
  gr.Checkbox(
66
+ True, label="Use Feedback Adapter", info="Enables the feedback adapter."
67
  )
68
  ],
69
  "text",