Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ def preprocess_text(element):
|
|
20 |
# text = text.lower()
|
21 |
return text
|
22 |
else:
|
23 |
-
return "
|
24 |
|
25 |
def get_openai_response(text, length=100, model="gpt-3.5-turbo-instruct"):
|
26 |
summarizer = pipeline("summarization", model=model)
|
|
|
20 |
# text = text.lower()
|
21 |
return text
|
22 |
else:
|
23 |
+
return ""
|
24 |
|
25 |
def get_openai_response(text, length=100, model="gpt-3.5-turbo-instruct"):
|
26 |
summarizer = pipeline("summarization", model=model)
|