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
|
| 5 |
|
| 6 |
-
" {} "
|
| 7 |
'''
|
| 8 |
replacements = {
|
| 9 |
'{': 'OpenCurlyBrace',
|
|
|
|
| 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 No code Snippets are there then return NO.This is very important for my career:
|
| 5 |
|
| 6 |
+
Text: " {} "
|
| 7 |
'''
|
| 8 |
replacements = {
|
| 9 |
'{': 'OpenCurlyBrace',
|