jiminHuang commited on
Commit
4e08ece
1 Parent(s): 60c2244

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -50,7 +50,7 @@ tokenizer, llava_model, image_processor, context_len = load_pretrained_model(
50
  args.load_4bit,
51
  device=args.device)
52
 
53
- @spaces.GPU
54
  def bot_streaming(message, history):
55
  print ("triggered")
56
  print(message)
@@ -70,6 +70,8 @@ def bot_streaming(message, history):
70
  return
71
 
72
  streamer = TextIteratorStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
 
 
73
  def generate():
74
  print('Running chat')
75
  output = chat_llava(
 
50
  args.load_4bit,
51
  device=args.device)
52
 
53
+
54
  def bot_streaming(message, history):
55
  print ("triggered")
56
  print(message)
 
70
  return
71
 
72
  streamer = TextIteratorStreamer(tokenizer, skip_prompt=True, skip_special_tokens=True)
73
+
74
+ @spaces.GPU
75
  def generate():
76
  print('Running chat')
77
  output = chat_llava(