morningstarxcdcode commited on
Commit
b2ec058
·
verified ·
1 Parent(s): 005d9a5

Upload app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -1,7 +1,9 @@
 
1
  import gradio as gr
2
  from huggingface_hub import InferenceClient
3
 
4
- client = InferenceClient()
 
5
 
6
  SYSTEM_PROMPT = (
7
  "You are a medical reasoning assistant. Provide clear, step-by-step "
 
1
+ import os
2
  import gradio as gr
3
  from huggingface_hub import InferenceClient
4
 
5
+ token = os.environ.get("HF_TOKEN")
6
+ client = InferenceClient(token=token)
7
 
8
  SYSTEM_PROMPT = (
9
  "You are a medical reasoning assistant. Provide clear, step-by-step "