Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,11 @@ import re
|
|
6 |
import gradio as gr
|
7 |
|
8 |
# Initialize NLP model for understanding and generating text
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
11 |
|
12 |
def fetch_and_summarize(url):
|
13 |
response = requests.get(url)
|
|
|
6 |
import gradio as gr
|
7 |
|
8 |
# Initialize NLP model for understanding and generating text
|
9 |
+
model = "Qwen/Qwen2.5-72B-Instruct"
|
10 |
+
#nlp = pipeline("question-answering")
|
11 |
+
#summarizer = pipeline("summarization")
|
12 |
+
nlp = pipeline(model=model)
|
13 |
+
summarizer = pipeline(model=model)
|
14 |
|
15 |
def fetch_and_summarize(url):
|
16 |
response = requests.get(url)
|