corumbus commited on
Commit
5852b02
·
1 Parent(s): d03bc32
Files changed (2) hide show
  1. __pycache__/app.cpython-310.pyc +0 -0
  2. app.py +4 -3
__pycache__/app.cpython-310.pyc ADDED
Binary file (367 Bytes). View file
 
app.py CHANGED
@@ -1,7 +1,8 @@
1
  import gradio as gr
 
2
 
3
- # Load the app from a private Space
4
- interface = gr.Interface("spaces/iamboolean/dev-rag-1")
 
5
 
6
- # Launch the interface
7
  interface.launch()
 
1
  import gradio as gr
2
+ import os
3
 
4
+ hf_api_key = os.getenv("HF_API_KEY")
5
+ interface = gr.load("iamboolean/dev-rag-2", src="spaces",
6
+ token=hf_api_key)
7
 
 
8
  interface.launch()