JagmeetMinhas22 commited on
Commit
75c8ffb
·
verified ·
1 Parent(s): bd22318

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -7,4 +7,9 @@ textToParaphrase = st.text_input("Need to summarize lengthy text? Paste it here!
7
 
8
  if textToParaphrase:
9
  summary = summarizer(textToParaphrase, max_length=130, min_length=30, do_sample=False)
10
- st.write(summary[0]['summary_text']) # Displaying the summarized text in Streamlit
 
 
 
 
 
 
7
 
8
  if textToParaphrase:
9
  summary = summarizer(textToParaphrase, max_length=130, min_length=30, do_sample=False)
10
+ st.write(summary[0]['summary_text']) # Displaying the summarized text in Streamlit
11
+
12
+ # Use a pipeline as a high-level helper
13
+ messages = [{"role": "user", "content": "Who are you?"}]
14
+ pipe = pipeline("text-generation", model="microsoft/Phi-3.5-mini-instruct", trust_remote_code=True)
15
+ pipe(messages)