Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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
|
| 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")
|