Spaces:
Runtime error
Runtime error
Together
Browse files
app.py
CHANGED
@@ -76,20 +76,7 @@ def analyze_chat(detector_type, chat_input):
|
|
76 |
messages=[
|
77 |
{"role": "system", "content": system_prompt},
|
78 |
{"role": "user", "content": chat_input}
|
79 |
-
],
|
80 |
-
frequency_penalty= 0, # Optional, Defaults to 0. Range: -2 to 2
|
81 |
-
logit_bias= {2435: -100, 640: -100},
|
82 |
-
logprobs= True, # Optional, Defaults to false
|
83 |
-
top_logprobs= 2, # Optional. Range: 0 to 50
|
84 |
-
max_tokens= 500, # Optional
|
85 |
-
n= 1, # Optional, Defaults to 1
|
86 |
-
presence_penalty= 0, # Optional, Defaults to 0. Range: -2 to 2
|
87 |
-
response_format= { "type": "text" }, # Optional, Defaults to text
|
88 |
-
stream= False, # Optional, Defaults to false
|
89 |
-
temperature= 0, # Optional, Defaults to 1. Range: 0 to 2
|
90 |
-
top_p= 1 # Optional, Defaults to 1. We generally recommend altering this or temperature but not both.
|
91 |
-
|
92 |
-
)
|
93 |
return response.choices[0].message.content.strip()
|
94 |
|
95 |
# Gradio interface
|
|
|
76 |
messages=[
|
77 |
{"role": "system", "content": system_prompt},
|
78 |
{"role": "user", "content": chat_input}
|
79 |
+
],)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
return response.choices[0].message.content.strip()
|
81 |
|
82 |
# Gradio interface
|