Spaces:
Sleeping
Sleeping
Update app.py
Browse files3 unmodified lines456789101 unmodified line121314151617183 unmodified linesclient = InferenceClient("google/gemma-3-27b-it ")def respond (message, history):messages = [{"role": "system", "content": "You are a friendly chatbot."}]if history:1 unmodified linemessages.append({"role": "user", "content": message})response = client.chat_completion(messages,max_tokens=100)print(response['choices'][0]['message']['content'].strip())3 unmodified lines456789101 unmodified line121314151617181920213 unmodified linesclient = InferenceClient("Qwen/Qwen2.5-72B-Instruct")def respond (message, history):messages = [{"role": "system", "content": "You are a friendly chatbot."}]if history:1 unmodified linemessages.append({"role": "user", "content": message})response = client.chat_completion(messages,max_tokens=10,temperature =.9,top_p=.7)print(response['choices'][0]['message']['content'].strip())
app.py+5-2