BenBranyon commited on
Commit
d115c8d
1 Parent(s): 3675cbb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -0
app.py CHANGED
@@ -3,7 +3,10 @@ import torch
3
  from huggingface_hub import InferenceClient
4
  from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
5
 
 
6
  client = InferenceClient("BenBranyon/zephyr-sumbot-all-songs")
 
 
7
  model_id = "BenBranyon/zephyr-sumbot-all-songs"
8
  model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", load_in_4bit=True)
9
  tokenizer = AutoTokenizer.from_pretrained(model_id)
 
3
  from huggingface_hub import InferenceClient
4
  from transformers import AutoModelForCausalLM, AutoTokenizer, TextIteratorStreamer
5
 
6
+ #Inference API Code
7
  client = InferenceClient("BenBranyon/zephyr-sumbot-all-songs")
8
+
9
+ #Transformers Code
10
  model_id = "BenBranyon/zephyr-sumbot-all-songs"
11
  model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto", load_in_4bit=True)
12
  tokenizer = AutoTokenizer.from_pretrained(model_id)