Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,8 @@
|
|
1 |
-
import os
|
2 |
from huggingface_hub import InferenceClient, login
|
3 |
from transformers import AutoTokenizer
|
4 |
from langchain.chat_models import ChatOpenAI
|
|
|
|
|
5 |
|
6 |
# access token with permission to access the model and PRO subscription
|
7 |
HUGGINGFACEHUB_API_TOKEN = os.getenv("HF_ACCESS_READ")
|
|
|
|
|
1 |
from huggingface_hub import InferenceClient, login
|
2 |
from transformers import AutoTokenizer
|
3 |
from langchain.chat_models import ChatOpenAI
|
4 |
+
import os, sys, json
|
5 |
+
import gradio as gr
|
6 |
|
7 |
# access token with permission to access the model and PRO subscription
|
8 |
HUGGINGFACEHUB_API_TOKEN = os.getenv("HF_ACCESS_READ")
|