peder commited on
Commit
a383bc0
·
1 Parent(s): 5ca6dc6
Files changed (2) hide show
  1. app.py +3 -3
  2. requirements.txt +3 -2
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import random
2
  import os
3
  from urllib.parse import urlencode
4
- from pyngrok import ngrok
5
 
6
  import streamlit as st
7
  import streamlit.components.v1 as components
@@ -9,7 +9,7 @@ import torch
9
  from transformers import pipeline, set_seed
10
  from transformers import AutoTokenizer, AutoModelForCausalLM
11
 
12
- import torch
13
  print(f"Is CUDA available: {torch.cuda.is_available()}")
14
  # True
15
  print(
@@ -274,4 +274,4 @@ def main():
274
 
275
 
276
  if __name__ == '__main__':
277
- main()
 
1
  import random
2
  import os
3
  from urllib.parse import urlencode
4
+ #from pyngrok import ngrok
5
 
6
  import streamlit as st
7
  import streamlit.components.v1 as components
 
9
  from transformers import pipeline, set_seed
10
  from transformers import AutoTokenizer, AutoModelForCausalLM
11
 
12
+ #import torch
13
  print(f"Is CUDA available: {torch.cuda.is_available()}")
14
  # True
15
  print(
 
274
 
275
 
276
  if __name__ == '__main__':
277
+ main()
requirements.txt CHANGED
@@ -1,5 +1,6 @@
1
  --find-links https://download.pytorch.org/whl/torch_stable.html
2
- torch
3
  transformers
4
  urllib3
5
- pyngrok
 
 
1
  --find-links https://download.pytorch.org/whl/torch_stable.html
2
+ torch==2.0.0+cu118
3
  transformers
4
  urllib3
5
+ pyngrok
6
+ torchvision==2.0.0+cu118 torchaudio==2.0.0