abdulmalek9 commited on
Commit
aebfc76
1 Parent(s): da4168b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -4,4 +4,10 @@ def greet(name):
4
  return "Hello " + name + "!!"
5
 
6
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch(share=True,debug=True)
 
 
 
 
 
 
 
4
  return "Hello " + name + "!!"
5
 
6
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
+ iface.launch(share=True,debug=True)
8
+
9
+ # Load model directly
10
+ from transformers import AutoTokenizer, AutoModelForCausalLM
11
+
12
+ tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-2-13b-chat-hf")
13
+ model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-13b-chat-hf")