bhardwaj08sarthak commited on
Commit
2ea51de
·
verified ·
1 Parent(s): 801526d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -1,7 +1,8 @@
1
  # Create a self-contained Gradio app that uses the agent-driven loop (Option A)
2
  # It expects `level_classifier_tool.py` to be colocated (or installed on PYTHONPATH).
3
  import sys
4
- sys.path.append(r"C:\Users\Sarthak\OneDrive - UT Cloud\thesis\HF_Agent\src") # use raw string because of spaces
 
5
  import json
6
  import gradio as gr
7
  from huggingface_hub import InferenceClient
 
1
  # Create a self-contained Gradio app that uses the agent-driven loop (Option A)
2
  # It expects `level_classifier_tool.py` to be colocated (or installed on PYTHONPATH).
3
  import sys
4
+ from huggingface_hub import login
5
+ login(os.env("HF_token"))
6
  import json
7
  import gradio as gr
8
  from huggingface_hub import InferenceClient