NeuralJunkie commited on
Commit
96fb74c
·
1 Parent(s): a296663

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -0
app.py CHANGED
@@ -19,12 +19,23 @@ def chatbot(text):
19
  prompt=text,
20
  max_tokens=max_tokens,
21
  temperature=temperature,
 
 
 
 
 
 
 
 
 
 
22
  )
23
  # Extract the generated response from the API response
24
  generated_text = response.choices[0].text
25
  # Return the response, stripping any leading or trailing whitespace
26
  return generated_text.strip()
27
 
 
28
  # Define the Gradio interface
29
  interface = gr.Interface(
30
  fn=chatbot,
 
19
  prompt=text,
20
  max_tokens=max_tokens,
21
  temperature=temperature,
22
+ stop=None,
23
+ n=None,
24
+ logprobs=None,
25
+ echo=False,
26
+ presence_penalty=None,
27
+ frequency_penalty=None,
28
+ best_of=None,
29
+ response_format="text",
30
+ v="2022-04-28", # specify the OpenAI API version explicitly
31
+ model=None, # remove the 'model' parameter
32
  )
33
  # Extract the generated response from the API response
34
  generated_text = response.choices[0].text
35
  # Return the response, stripping any leading or trailing whitespace
36
  return generated_text.strip()
37
 
38
+
39
  # Define the Gradio interface
40
  interface = gr.Interface(
41
  fn=chatbot,