Spaces:
Running
Running
Shiyu Zhao
commited on
Commit
·
5bc3f73
1
Parent(s):
7bc286a
Update space
Browse files
app.py
CHANGED
@@ -2,6 +2,7 @@ import gradio as gr
|
|
2 |
import pandas as pd
|
3 |
import numpy as np
|
4 |
import os
|
|
|
5 |
import re
|
6 |
from datetime import datetime
|
7 |
import json
|
@@ -34,6 +35,10 @@ from stark_qa.evaluator import Evaluator
|
|
34 |
from utils.hub_storage import HubStorage
|
35 |
from utils.token_handler import TokenHandler
|
36 |
|
|
|
|
|
|
|
|
|
37 |
# Initialize storage once at startup
|
38 |
try:
|
39 |
REPO_ID = "snap-stanford/stark-leaderboard" # Replace with your space name
|
|
|
2 |
import pandas as pd
|
3 |
import numpy as np
|
4 |
import os
|
5 |
+
import sys
|
6 |
import re
|
7 |
from datetime import datetime
|
8 |
import json
|
|
|
35 |
from utils.hub_storage import HubStorage
|
36 |
from utils.token_handler import TokenHandler
|
37 |
|
38 |
+
current_dir = os.path.dirname(os.path.abspath(__file__))
|
39 |
+
if current_dir not in sys.path:
|
40 |
+
sys.path.append(current_dir)
|
41 |
+
|
42 |
# Initialize storage once at startup
|
43 |
try:
|
44 |
REPO_ID = "snap-stanford/stark-leaderboard" # Replace with your space name
|