Akjava commited on
Commit
937d944
Β·
verified Β·
1 Parent(s): ffe736b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -5
app.py CHANGED
@@ -9,13 +9,15 @@ import gradio as gr
9
  text_generator = None
10
  is_hugging_face = True
11
  model_id = "google/gemma-2-9b-it"
 
 
 
 
 
 
12
  def init():
13
  global text_generator
14
- huggingface_token = os.getenv("HUGGINGFACE_TOKEN")
15
- if not huggingface_token:
16
- pass
17
- print("no HUGGINGFACE_TOKEN if you need set secret ")
18
- #raise ValueError("HUGGINGFACE_TOKEN environment variable is not set")
19
 
20
 
21
  #model_id = "microsoft/Phi-3-mini-128k-instruct"
 
9
  text_generator = None
10
  is_hugging_face = True
11
  model_id = "google/gemma-2-9b-it"
12
+ huggingface_token = os.getenv("HUGGINGFACE_TOKEN")
13
+ if not huggingface_token:
14
+ pass
15
+ print("no HUGGINGFACE_TOKEN if you need set secret ")
16
+ #raise ValueError("HUGGINGFACE_TOKEN environment variable is not set")
17
+
18
  def init():
19
  global text_generator
20
+
 
 
 
 
21
 
22
 
23
  #model_id = "microsoft/Phi-3-mini-128k-instruct"