RoAr777 commited on
Commit
9d1ad53
·
1 Parent(s): 4585e4b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,9 +1,9 @@
1
  import gradio as gr
2
  import time
3
  from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
4
- prompt=''' Review the Following text as a human, who is tasked to Extract `Code Snippets` ,if any. If there are no Code Snippets in the below Text then return No CODE HIDDEN:
5
 
6
- "{}"
7
  '''
8
 
9
  model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-large")
 
1
  import gradio as gr
2
  import time
3
  from transformers import AutoModelForSeq2SeqLM, AutoTokenizer
4
+ prompt=''' Review the Following text as a human, who is tasked to Extract `Code Snippets` of any programming language , of any length ,if any. If there are no Code Snippets in the below Text then return No:
5
 
6
+ "/{}/"
7
  '''
8
 
9
  model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-large")