AFischer1985 commited on
Commit
af54abc
·
verified ·
1 Parent(s): 7631ab1

Update run.py

Browse files
Files changed (1) hide show
  1. run.py +1 -0
run.py CHANGED
@@ -215,6 +215,7 @@ def response(message, history,customSysPrompt, genre, hfToken):
215
  if((onPrem==False) & (hfToken.startswith("hf_"))): # use HF-hub with custom token if token is provided
216
  from huggingface_hub import InferenceClient
217
  import gradio as gr
 
218
  client = InferenceClient(
219
  model=myModel,
220
  token=hfToken
 
215
  if((onPrem==False) & (hfToken.startswith("hf_"))): # use HF-hub with custom token if token is provided
216
  from huggingface_hub import InferenceClient
217
  import gradio as gr
218
+ global client
219
  client = InferenceClient(
220
  model=myModel,
221
  token=hfToken