Spaces:
Sleeping
Sleeping
corumbus
commited on
Commit
·
5852b02
1
Parent(s):
d03bc32
update
Browse files- __pycache__/app.cpython-310.pyc +0 -0
- 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 |
-
|
4 |
-
interface = gr.
|
|
|
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()
|