Moritz Stephan commited on
Commit
6bd4424
·
1 Parent(s): 806f2ad
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,7 +20,7 @@ def get_feedback_options() -> List[Tuple[str, str]]:
20
  for adapter in data]
21
 
22
 
23
- def get_completion(prompt: str, adapter: Optional[str], enable_feedback: bool) -> str:
24
  args = {
25
  "C3PO_API_KEY": os.environ.get("C3PO_API_KEY"),
26
  "prompt": prompt if enable_feedback else None,
@@ -52,7 +52,7 @@ demo = gr.Interface(
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(
 
20
  for adapter in data]
21
 
22
 
23
+ def get_completion(_, prompt: str, adapter: Optional[str], enable_feedback: bool) -> str:
24
  args = {
25
  "C3PO_API_KEY": os.environ.get("C3PO_API_KEY"),
26
  "prompt": prompt if enable_feedback else None,
 
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 not hosted on Huggingface but on a 3rd party service. If this HF space has not been used recently, the model container might need to spin up if it's not currently running. This might take up to a minute on the first request.
56
  """
57
  ),
58
  gr.Textbox(