MuntasirHossain commited on
Commit
cb8f33a
1 Parent(s): a8350ef

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -1,5 +1,12 @@
1
  import os
2
  import gradio as gr
3
 
4
- app = gr.load(name="MuntasirHossain/RAG-Chat-with-PDF-2", hf_token = os.getenv("HF_TOKEN"), src="spaces")
 
 
 
 
 
 
 
5
  app.queue().launch()
 
1
  import os
2
  import gradio as gr
3
 
4
+ # app = gr.load(name="MuntasirHossain/RAG-Chat-with-PDF-2", hf_token = os.getenv("HF_TOKEN"), src="spaces")
5
+ # app.queue().launch()
6
+
7
+ import gradio as gr
8
+
9
+ with gr.Blocks() as app:
10
+ gr.load("MuntasirHossain/RAG-Chat-with-PDF-2", hf_token=os.getenv("HF_TOKEN"), src="spaces").render()
11
+
12
  app.queue().launch()