kingabzpro commited on
Commit
07817f2
·
1 Parent(s): 5a67153

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -9
app.py CHANGED
@@ -14,13 +14,5 @@ pipeline = transformers.pipeline(
14
  trust_remote_code=True,
15
  device_map="auto",
16
  )
17
- sequences = pipeline(
18
- "Girafatron is obsessed with giraffes, the most glorious animal on the face of this Earth. Giraftron believes all other animals are irrelevant when compared to the glorious majesty of the giraffe.\nDaniel: Hello, Girafatron!\nGirafatron:",
19
- max_length=200,
20
- do_sample=True,
21
- top_k=10,
22
- num_return_sequences=1,
23
- eos_token_id=tokenizer.eos_token_id,
24
- )
25
 
26
- gr.Interface.from_pipeline(sequences).launch()
 
14
  trust_remote_code=True,
15
  device_map="auto",
16
  )
 
 
 
 
 
 
 
 
17
 
18
+ gr.Interface.from_pipeline(pipeline).launch()