morisp commited on
Commit
a76ffe3
·
verified ·
1 Parent(s): 390b438

create requirements.txt

Browse files
Files changed (1) hide show
  1. app.py +3 -10
app.py CHANGED
@@ -1,10 +1,3 @@
1
- import gradio as gr
2
- from transformers import pipeline
3
-
4
- pipe = pipeline("text-generation", model="TinyLlama/TinyLlama-1.1B-Chat-v1.0")
5
-
6
- def chat(message, history):
7
- response = pipe(message, max_new_tokens=256)
8
- return response[0]['generated_text']
9
-
10
- gr.ChatInterface(chat).launch()
 
1
+ transformers
2
+ torch
3
+ accelerate