richardr1126 commited on
Commit
f7fa740
1 Parent(s): cf0db0a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -4
app.py CHANGED
@@ -7,13 +7,10 @@ from transformers import (
7
  StoppingCriteriaList,
8
  TextIteratorStreamer,
9
  )
10
- from huggingface_hub import login
11
  import gradio as gr
12
  import torch
13
 
14
- login(os.getenv("HF_TOKEN", None))
15
-
16
- model_name = "richardr1126/spider-skeleton-wizard-coder-merged"
17
  tok = AutoTokenizer.from_pretrained(model_name)
18
 
19
  max_new_tokens = 1536
 
7
  StoppingCriteriaList,
8
  TextIteratorStreamer,
9
  )
 
10
  import gradio as gr
11
  import torch
12
 
13
+ model_name = os.getenv("HF_MODEL_NAME", None)
 
 
14
  tok = AutoTokenizer.from_pretrained(model_name)
15
 
16
  max_new_tokens = 1536