Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -27,6 +27,11 @@ os.environ["PYTORCH_CUDA_ALLOC_CONF"] = "expandable_segments:True"
|
|
27 |
|
28 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
29 |
|
|
|
|
|
|
|
|
|
|
|
30 |
def get_examples(examples_dir: str = "assets/examples") -> list:
|
31 |
examples = Path(examples_dir)
|
32 |
ans = []
|
|
|
27 |
|
28 |
openai.api_key = os.getenv("OPENAI_API_KEY")
|
29 |
|
30 |
+
from huggingface_hub import login
|
31 |
+
|
32 |
+
|
33 |
+
login(token=os.getenv("HUGGINGFACE_TOKEN"))
|
34 |
+
|
35 |
def get_examples(examples_dir: str = "assets/examples") -> list:
|
36 |
examples = Path(examples_dir)
|
37 |
ans = []
|