abdulmalek9 commited on
Commit
36b6695
1 Parent(s): aebfc76

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -4,10 +4,12 @@ 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)
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")
 
 
 
4
  return "Hello " + name + "!!"
5
 
6
  iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
+ iface.launch()
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")
14
+
15
+ print('hi')