abdulmalek9 commited on
Commit
c4491b8
1 Parent(s): 695e908
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -1,4 +1,5 @@
1
  import gradio as gr
 
2
 
3
  def greet(name):
4
  return str(int(name)+10)
@@ -7,8 +8,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
 
 
1
  import gradio as gr
2
+ from transformers import AutoTokenizer, AutoModelForCausalLM
3
 
4
  def greet(name):
5
  return str(int(name)+10)
 
8
  iface.launch()
9
 
10
  # Load model directly
 
 
11
  tokenizer = AutoTokenizer.from_pretrained("meta-llama/Llama-2-13b-chat-hf")
12
  model = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-2-13b-chat-hf")
13