legolasyiu commited on
Commit
dbca8cc
1 Parent(s): 8d2fc25

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -6
app.py CHANGED
@@ -1,15 +1,14 @@
1
- from transformers import AutoModelForCausalLM, AutoTokenizer
2
- import gradio as gr
3
- import torch
4
-
5
- import gradio as gr
6
-
7
  from langchain import hub
8
  from langchain.agents import AgentExecutor, create_openai_tools_agent, load_tools
9
  from langchain_openai import ChatOpenAI
10
  from gradio import ChatMessage
11
  import gradio as gr
12
 
 
 
 
 
 
13
  from dotenv import load_dotenv
14
 
15
  load_dotenv()
 
 
 
 
 
 
 
1
  from langchain import hub
2
  from langchain.agents import AgentExecutor, create_openai_tools_agent, load_tools
3
  from langchain_openai import ChatOpenAI
4
  from gradio import ChatMessage
5
  import gradio as gr
6
 
7
+ from langchain_community.llms import HuggingFaceEndpoint
8
+ from langchain_community.chat_models.huggingface import ChatHuggingFace
9
+
10
+ from transformers import BitsAndBytesConfig
11
+
12
  from dotenv import load_dotenv
13
 
14
  load_dotenv()