Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -12,7 +12,7 @@ import gradio as gr
|
|
| 12 |
# -------------------------------
|
| 13 |
# Config
|
| 14 |
# -------------------------------
|
| 15 |
-
HERE = Path(
|
| 16 |
REPO = os.environ.get("MODEL_REPO", "ChogwuCY/salatus-qa-xlmrb-base") # <— change if needed
|
| 17 |
|
| 18 |
RETR_DIR = HERE / "retriever"
|
|
@@ -269,5 +269,5 @@ def build_ui():
|
|
| 269 |
|
| 270 |
demo = build_ui()
|
| 271 |
|
| 272 |
-
if
|
| 273 |
demo.queue().launch()
|
|
|
|
| 12 |
# -------------------------------
|
| 13 |
# Config
|
| 14 |
# -------------------------------
|
| 15 |
+
HERE = Path(__file__).parent
|
| 16 |
REPO = os.environ.get("MODEL_REPO", "ChogwuCY/salatus-qa-xlmrb-base") # <— change if needed
|
| 17 |
|
| 18 |
RETR_DIR = HERE / "retriever"
|
|
|
|
| 269 |
|
| 270 |
demo = build_ui()
|
| 271 |
|
| 272 |
+
if __name__ == "__main__":
|
| 273 |
demo.queue().launch()
|