ajc2195 commited on
Commit
00f6fb6
·
verified ·
1 Parent(s): 14859c2

Delete handler.py

Browse files
Files changed (1) hide show
  1. handler.py +0 -11
handler.py DELETED
@@ -1,11 +0,0 @@
1
- import gradio as gr
2
- from transformers import pipeline
3
-
4
- # Load your model
5
- pipe = pipeline("text-generation", model="./")
6
-
7
- def generate_text(prompt):
8
- return pipe(prompt, max_length=100)[0]['generated_text']
9
-
10
- iface = gr.Interface(fn=generate_text, inputs="text", outputs="text")
11
- iface.launch()