alexkueck commited on
Commit
aaa9b8b
1 Parent(s): 0b4bbfa

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -7
app.py CHANGED
@@ -23,10 +23,6 @@ from dotenv import load_dotenv, find_dotenv
23
  _ = load_dotenv(find_dotenv())
24
 
25
 
26
- # Schnittstellen hinzubinden und OpenAI Key holen aus den Secrets
27
- #client = OpenAI(
28
- #api_key=os.getenv("OPENAI_API_KEY"),
29
- #)
30
 
31
  #################################################
32
  #globale Variablen
@@ -269,10 +265,10 @@ additional_inputs = [
269
  gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Strafe für wiederholte Tokens")
270
  ]
271
 
272
- with gr.Blocks():
273
- demo = gr.ChatInterface(
274
  fn=invoke,
275
- additional_inputs = additional_inputs,
276
  title = "Generative AI - LLM & RAG",
277
  description = description)
278
 
 
23
  _ = load_dotenv(find_dotenv())
24
 
25
 
 
 
 
 
26
 
27
  #################################################
28
  #globale Variablen
 
265
  gr.Slider(label="Repetition penalty", value=1.2, minimum=1.0, maximum=2.0, step=0.05, interactive=True, info="Strafe für wiederholte Tokens")
266
  ]
267
 
268
+ gr.close_all()
269
+ demo = gr.ChatInterface(
270
  fn=invoke,
271
+ #additional_inputs = additional_inputs,
272
  title = "Generative AI - LLM & RAG",
273
  description = description)
274