Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -181,8 +181,7 @@ Answer:"""
|
|
| 181 |
def create_gradio_interface():
|
| 182 |
try:
|
| 183 |
logger.info("Creating Gradio interface...")
|
| 184 |
-
|
| 185 |
-
api_key = os.getenv("HUGGINGFACE_API_KEY", "your_huggingface_api_key")
|
| 186 |
rag = RAGApplication(hf_api_key=api_key)
|
| 187 |
|
| 188 |
with gr.Blocks() as demo:
|
|
|
|
| 181 |
def create_gradio_interface():
|
| 182 |
try:
|
| 183 |
logger.info("Creating Gradio interface...")
|
| 184 |
+
api_key = os.getenv("HF_API_KEY")
|
|
|
|
| 185 |
rag = RAGApplication(hf_api_key=api_key)
|
| 186 |
|
| 187 |
with gr.Blocks() as demo:
|