Spaces:
Runtime error
Runtime error
Commit
·
898d20c
1
Parent(s):
9af7842
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
import streamlit as st
|
|
|
2 |
|
3 |
def summarize_function(notes):
|
4 |
gen_text = pipe(notes, max_length=(len(notes.split(' '))*2*1.225), temperature=0.8, num_return_sequences=1, top_p=0.2)[0]['generated_text'][len(notes):]
|
|
|
1 |
import streamlit as st
|
2 |
+
import re
|
3 |
|
4 |
def summarize_function(notes):
|
5 |
gen_text = pipe(notes, max_length=(len(notes.split(' '))*2*1.225), temperature=0.8, num_return_sequences=1, top_p=0.2)[0]['generated_text'][len(notes):]
|