Daetheys commited on
Commit
e1d16db
·
1 Parent(s): 3d6ba31

Added dev info line

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -101,8 +101,8 @@ def search_bar_gr(model_names,slider=True,double_search=False,key=None):
101
  ret.insert(0,col2)
102
  return ret
103
 
104
- import spaces
105
- @spaces.GPU(duration=300)
106
  def _run(path,genes,N,progress_bar):
107
  #Load the model
108
  progress_bar(0.20, desc="Loading Model...",total=100)
@@ -222,6 +222,8 @@ def reload_env():
222
 
223
 
224
  # Load environment variables
 
 
225
 
226
  USERNAME = os.environ['GITHUB_USERNAME']
227
  TOKEN = os.environ['GITHUB_TOKEN']
@@ -253,6 +255,8 @@ TREE_SEARCH = None
253
  # Build the Gradio interface
254
  with gr.Blocks(title="PhyloLM", theme=gr.themes.Default()) as demo:
255
  gr.Markdown("# PhyloLM: Phylogenetic Mapping of Language Models")
 
 
256
 
257
  gr.Markdown(
258
  "Welcome to PhyloLM ([paper](https://arxiv.org/abs/2404.04671) - [code](https://github.com/Nicolas-Yax/PhyloLM)) — a tool for comparing language models based on their **behavioral similarity**, inspired by methods from comparative genomics. "
 
101
  ret.insert(0,col2)
102
  return ret
103
 
104
+ #import spaces
105
+ #@spaces.GPU(duration=300)
106
  def _run(path,genes,N,progress_bar):
107
  #Load the model
108
  progress_bar(0.20, desc="Loading Model...",total=100)
 
222
 
223
 
224
  # Load environment variables
225
+ import dotenv
226
+ dotenv.load_dotenv()
227
 
228
  USERNAME = os.environ['GITHUB_USERNAME']
229
  TOKEN = os.environ['GITHUB_TOKEN']
 
255
  # Build the Gradio interface
256
  with gr.Blocks(title="PhyloLM", theme=gr.themes.Default()) as demo:
257
  gr.Markdown("# PhyloLM: Phylogenetic Mapping of Language Models")
258
+
259
+ gr.Markdown("_This space is under active development. New features and improvements will be added regularly and some things may not work properly. Feel free to open an issue if you encounter any problems._")
260
 
261
  gr.Markdown(
262
  "Welcome to PhyloLM ([paper](https://arxiv.org/abs/2404.04671) - [code](https://github.com/Nicolas-Yax/PhyloLM)) — a tool for comparing language models based on their **behavioral similarity**, inspired by methods from comparative genomics. "