thezzk commited on
Commit
373eee1
·
1 Parent(s): 7e1a7c2

change summary to text-gen

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -3,12 +3,15 @@ import gradio as gr
3
 
4
 
5
  model = pipeline(
6
- "summarization",
 
7
  )
8
 
9
  def predict(prompt):
10
- summary = model(prompt)[0]["summary_text"]
11
- return summary
 
 
12
 
13
 
14
  # create an interface for the model
 
3
 
4
 
5
  model = pipeline(
6
+ #"summarization",
7
+ "text-generation"
8
  )
9
 
10
  def predict(prompt):
11
+ #summary = model(prompt)[0]["summary_text"]
12
+ #return summary
13
+ generationResult = model(prompt)[0]["generated_text"]
14
+ return generationResult
15
 
16
 
17
  # create an interface for the model