alexkueck commited on
Commit
ab6c181
1 Parent(s): fb03e1e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -62,6 +62,7 @@ RAG_CHAIN_PROMPT = PromptTemplate(input_variables = ["context", "question"],
62
  HUGGINGFACEHUB_API_TOKEN = os.getenv("HF_ACCESS_READ")
63
  OAI_API_KEY=os.getenv("OPENAI_API_KEY")
64
 
 
65
  #Pfad, wo Docs/Bilder/Filme abgelegt werden können - lokal, also hier im HF Space (sonst auf eigenem Rechner)
66
  PATH_WORK = "."
67
  CHROMA_DIR = "/chroma"
@@ -79,8 +80,11 @@ YOUTUBE_URL_2 = "https://www.youtube.com/watch?v=hdhZwyf24mE"
79
  #LLM Model mit dem gearbeitet wird
80
  #openai-------------------------------------
81
  #MODEL_NAME = "gpt-3.5-turbo-16k"
82
- #MODEL_NAME ="gpt-4"
83
- MODEL_NAME = "text-davinci-004"
 
 
 
84
 
85
  #HuggingFace--------------------------------
86
  #repo_id = "meta-llama/Llama-2-13b-chat-hf"
@@ -89,7 +93,7 @@ repo_id = "HuggingFaceH4/zephyr-7b-alpha" #das Modell ist echt gut!!! Vom MIT
89
  #repo_id = "tiiuae/falcon-40b"
90
  #repo_id = "Vicuna-33b"
91
  #repo_id = "alexkueck/ChatBotLI2Klein"
92
- #repo_id ="mistralai/Mistral-7B-v0.1"
93
  #repo_id = "internlm/internlm-chat-7b"
94
  #repo_id = "Qwen/Qwen-7B"
95
  #repo_id = "Salesforce/xgen-7b-8k-base"
 
62
  HUGGINGFACEHUB_API_TOKEN = os.getenv("HF_ACCESS_READ")
63
  OAI_API_KEY=os.getenv("OPENAI_API_KEY")
64
 
65
+
66
  #Pfad, wo Docs/Bilder/Filme abgelegt werden können - lokal, also hier im HF Space (sonst auf eigenem Rechner)
67
  PATH_WORK = "."
68
  CHROMA_DIR = "/chroma"
 
80
  #LLM Model mit dem gearbeitet wird
81
  #openai-------------------------------------
82
  #MODEL_NAME = "gpt-3.5-turbo-16k"
83
+ MODEL_NAME ="gpt-4"
84
+ #verfügbare Modelle anzeigen lassen
85
+ openai_obj = OpenAI(api_key=OAI_API_KEY)
86
+ model_list = openai_obj.list_models()
87
+ print(model_list)
88
 
89
  #HuggingFace--------------------------------
90
  #repo_id = "meta-llama/Llama-2-13b-chat-hf"
 
93
  #repo_id = "tiiuae/falcon-40b"
94
  #repo_id = "Vicuna-33b"
95
  #repo_id = "alexkueck/ChatBotLI2Klein"
96
+ #repo_id = "mistralai/Mistral-7B-v0.1"
97
  #repo_id = "internlm/internlm-chat-7b"
98
  #repo_id = "Qwen/Qwen-7B"
99
  #repo_id = "Salesforce/xgen-7b-8k-base"