ttocsmann commited on
Commit
fde9d7f
·
verified ·
1 Parent(s): f9a3dfc

Create app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -0
app.py ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from transformers import AutoModelForCausalLM, AutoTokenizer
3
+
4
+ def your_model_function(input):
5
+ # Your model logic here
6
+ return output
7
+
8
+ iface = gr.Interface(
9
+ fn=your_model_function,
10
+ inputs="text",
11
+ outputs="text"
12
+ )
13
+
14
+ iface.launch()