HemaMeena commited on
Commit
f400fca
·
verified ·
1 Parent(s): 0a9cf6a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -6
app.py CHANGED
@@ -366,10 +366,11 @@ qa_chain = RetrievalQA.from_chain_type(
366
  verbose = False
367
  )
368
 
369
- demo = gr.ChatInterface(
370
- predict,
371
- title = f' Open-Source LLM ({CFG.model_name}) Question Answering'
372
- )
 
 
 
373
 
374
- demo.queue()
375
- demo.launch()
 
366
  verbose = False
367
  )
368
 
369
+ def start_demo():
370
+ demo = gr.ChatInterface(
371
+ predict,
372
+ title=f'Open-Source LLM ({CFG.model_name}) Question Answering'
373
+ )
374
+ demo.queue()
375
+ demo.launch()
376