Kolyadual commited on
Commit
9abdb05
·
verified ·
1 Parent(s): 0429733

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -5,7 +5,10 @@ from ddgs import DDGS
5
 
6
  HF_TOKEN = os.getenv("HF_TOKEN")
7
  if not HF_TOKEN:
8
- raise RuntimeError("Токен HF_TOKEN не задан в Secrets.")
 
 
 
9
 
10
  def web_search(query, max_results=3):
11
  try:
 
5
 
6
  HF_TOKEN = os.getenv("HF_TOKEN")
7
  if not HF_TOKEN:
8
+ raise RuntimeError("Токен HF_TOKEN не задан в Secrets!")
9
+
10
+ def respond(message, history, system_message, max_tokens, temperature, top_p):
11
+ client = InferenceClient(token=HF_TOKEN, model="openai/gpt-oss-20b")
12
 
13
  def web_search(query, max_results=3):
14
  try: