Update document-based-assistant/app.py
Browse files
document-based-assistant/app.py
CHANGED
|
@@ -5,6 +5,7 @@ import torch
|
|
| 5 |
from transformers import pipeline
|
| 6 |
import gradio as gr
|
| 7 |
from huggingface_hub import InferenceClient
|
|
|
|
| 8 |
|
| 9 |
docs = load_document("docs")
|
| 10 |
chunks = []
|
|
@@ -69,5 +70,7 @@ iface = gr.Interface(
|
|
| 69 |
# )
|
| 70 |
|
| 71 |
if __name__ == "__main__":
|
|
|
|
|
|
|
| 72 |
iface.launch(server_name="0.0.0.0", server_port=7860)
|
| 73 |
|
|
|
|
| 5 |
from transformers import pipeline
|
| 6 |
import gradio as gr
|
| 7 |
from huggingface_hub import InferenceClient
|
| 8 |
+
import os
|
| 9 |
|
| 10 |
docs = load_document("docs")
|
| 11 |
chunks = []
|
|
|
|
| 70 |
# )
|
| 71 |
|
| 72 |
if __name__ == "__main__":
|
| 73 |
+
if os.getenv("RUN_GAIA", "true") == "true":
|
| 74 |
+
run_gaia_test("naveensharma16")
|
| 75 |
iface.launch(server_name="0.0.0.0", server_port=7860)
|
| 76 |
|