alwayse commited on
Commit
64819c1
1 Parent(s): ea2d4f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,7 +8,7 @@ base_model, base_tokenizer, net, feature_ref, sigma, sigma0_u, ep, loaded_model,
8
  def single_instance_detection(sentence=None):
9
 
10
  with torch.no_grad():
11
- if sentence is None:
12
  sentence = "Now that you've built a demo, you'll probably want to share it with others. Gradio demos can be shared in two ways: using a temporary share link or permanent hosting on Spaces."
13
  sentence = sentence.strip()
14
  inputs = base_tokenizer([sentence], padding='max_length', truncation=True, max_length=100,return_tensors="pt").to(DEVICE)
 
8
  def single_instance_detection(sentence=None):
9
 
10
  with torch.no_grad():
11
+ if sentence is None:
12
  sentence = "Now that you've built a demo, you'll probably want to share it with others. Gradio demos can be shared in two ways: using a temporary share link or permanent hosting on Spaces."
13
  sentence = sentence.strip()
14
  inputs = base_tokenizer([sentence], padding='max_length', truncation=True, max_length=100,return_tensors="pt").to(DEVICE)