zubairsamo commited on
Commit
cc5a14b
1 Parent(s): b1dbb8d

error checks

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -2,7 +2,7 @@ from threading import Thread
2
 
3
  import torch
4
  import gradio as gr
5
- from transformers import AutoTokenizer, AutoModel
6
 
7
  model_id = "microsoft/codebert-base"
8
  torch_device = "cuda" if torch.cuda.is_available() else "cpu"
 
2
 
3
  import torch
4
  import gradio as gr
5
+ from transformers import AutoTokenizer, AutoModel,TextIteratorStreamer
6
 
7
  model_id = "microsoft/codebert-base"
8
  torch_device = "cuda" if torch.cuda.is_available() else "cpu"