Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -1,10 +1,11 @@
|
|
1 |
import streamlit as st
|
2 |
import os
|
3 |
import subprocess
|
4 |
-
from transformers import pipeline, AutoModelForCausalLM, AutoTokenizer
|
|
|
5 |
|
6 |
# Set your Hugging Face API key here
|
7 |
-
|
8 |
|
9 |
PROJECT_ROOT = "projects"
|
10 |
AGENT_DIRECTORY = "agents"
|
|
|
1 |
import streamlit as st
|
2 |
import os
|
3 |
import subprocess
|
4 |
+
from transformers import pipeline, AutoModelForCausalLM, AutoTokenizer
|
5 |
+
from huggingface_hub import HfApi
|
6 |
|
7 |
# Set your Hugging Face API key here
|
8 |
+
huggingface_token = "YOUR_HUGGING_FACE_API_KEY" # Replace with your actual token
|
9 |
|
10 |
PROJECT_ROOT = "projects"
|
11 |
AGENT_DIRECTORY = "agents"
|