Funybubble commited on
Commit
f7a826d
·
verified ·
1 Parent(s): ca70ef6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -5
app.py CHANGED
@@ -1,7 +1,10 @@
1
- import gradio as gr
2
 
3
- def greet(name):
4
- return "Hello " + name + "!!"
5
 
6
- iface = gr.Interface(fn=greet, inputs="text", outputs="text")
7
- iface.launch()
 
 
 
 
1
+ from transformers import AutoModel, AutoTokenizer
2
 
3
+ # Replace 'Funybubble/replit-code-instruct-quanatized' with the actual model name
4
+ model_name = 'Funybubble/replit-code-instruct-quanatized'
5
 
6
+ # Load the tokenizer and model
7
+ tokenizer = AutoTokenizer.from_pretrained(model_name)
8
+ model = AutoModel.from_pretrained(model_name)
9
+
10
+ # You can use the tokenizer and model as needed