Skip to content

Commit

Permalink
Fix root app path
Browse files Browse the repository at this point in the history
  • Loading branch information
cornzz committed Aug 13, 2024
1 parent 1967b8d commit 9be296b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
start_load = time.time()
load_dotenv()

APP_PATH = os.getenv("APP_PATH") or "/"
APP_PATH = os.getenv("APP_PATH") or ""
LLM_ENDPOINT = os.getenv("LLM_ENDPOINT")
LLM_TOKEN = os.getenv("LLM_TOKEN")
LLM_LIST = [
Expand Down Expand Up @@ -363,5 +363,5 @@ def flag(prompt, context, compr_prompt, rate, metrics, res_a_obj, res_b_obj, fla
flag_b.click(flag, inputs=FLAG_COMPONENTS + [flag_b], outputs=[flag_a, flag_n, flag_b], preprocess=False)


app = gr.mount_gradio_app(app, demo, path=APP_PATH)
app = gr.mount_gradio_app(app, demo, path=APP_PATH, root_path=APP_PATH)
print(f"Ready! Loaded in {time.time() - start_load:.2f}s")

0 comments on commit 9be296b

Please sign in to comment.