ostarling commited on
Commit
852c5e1
·
verified ·
1 Parent(s): 157c6b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,10 +1,11 @@
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
4
  MODEL_ID = "MiniMaxAI/MiniMax-M2.5"
5
  SYSTEM_PROMPT = "You are a helpful assistant. Your name is MiniMax-M2.5 and is built by MiniMax."
6
 
7
- client = InferenceClient(MODEL_ID)
8
 
9
 
10
  def respond(message, history, system_message, max_tokens, temperature, top_p):
 
1
+ import os
2
  import gradio as gr
3
  from huggingface_hub import InferenceClient
4
 
5
  MODEL_ID = "MiniMaxAI/MiniMax-M2.5"
6
  SYSTEM_PROMPT = "You are a helpful assistant. Your name is MiniMax-M2.5 and is built by MiniMax."
7
 
8
+ client = InferenceClient(MODEL_ID, token=os.environ.get("HF_TOKEN"))
9
 
10
 
11
  def respond(message, history, system_message, max_tokens, temperature, top_p):