alexkueck commited on
Commit
0ad4413
1 Parent(s): 33d3773

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -1
app.py CHANGED
@@ -269,7 +269,7 @@ 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() as demo:
273
  chatbot = gr.Chatbot(
274
  [],
275
  elem_id="chatbot",
@@ -280,6 +280,14 @@ with gr.Blocks() as demo:
280
  ),
281
  )
282
 
 
 
 
 
 
 
 
 
283
  with gr.Row():
284
  txt = gr.Textbox(
285
  scale=4,
 
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
  chatbot = gr.Chatbot(
274
  [],
275
  elem_id="chatbot",
 
280
  ),
281
  )
282
 
283
+ demo = gr.ChatInterface(
284
+ fn=invoke,
285
+ chatbot = chatbot,
286
+ additional_inputs = additional_inputs,
287
+ outputs = [chatbot],
288
+ title = "Generative AI - LLM & RAG",
289
+ description = description)
290
+
291
  with gr.Row():
292
  txt = gr.Textbox(
293
  scale=4,