Yersel commited on
Commit
2e80a61
·
1 Parent(s): 0a1b3a2
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -1,10 +1,4 @@
1
- from transformers import AutoModelForCausalLM, AutoTokenizer
2
- import torch
3
  import os
4
- from huggingface_hub import login
5
- import spaces
6
- import gradio as gr
7
-
8
  import subprocess
9
 
10
  # Ensure the required libraries are installed
@@ -15,6 +9,12 @@ def install(package):
15
  install("transformers")
16
  install("huggingface_hub")
17
 
 
 
 
 
 
 
18
  token = os.environ.get("HF_TOKEN_READ_LLAMA")
19
  login(token)
20
 
 
 
 
1
  import os
 
 
 
 
2
  import subprocess
3
 
4
  # Ensure the required libraries are installed
 
9
  install("transformers")
10
  install("huggingface_hub")
11
 
12
+ import torch
13
+ from huggingface_hub import login
14
+ from transformers import AutoModelForCausalLM, AutoTokenizer
15
+ import spaces
16
+ import gradio as gr
17
+
18
  token = os.environ.get("HF_TOKEN_READ_LLAMA")
19
  login(token)
20