Spaces:
Sleeping
Sleeping
CaiRou-Huang
commited on
Commit
•
4305889
1
Parent(s):
cddf551
Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
-
pipe = pipeline("text-generation"
|
5 |
|
6 |
def predict(prompt):
|
7 |
completion = model(prompt)[0]["generated_text"]
|
|
|
1 |
import gradio as gr
|
2 |
from transformers import pipeline
|
3 |
|
4 |
+
pipe = pipeline("text-generation")
|
5 |
|
6 |
def predict(prompt):
|
7 |
completion = model(prompt)[0]["generated_text"]
|