Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import requests
|
| 3 |
from bs4 import BeautifulSoup
|
| 4 |
-
|
| 5 |
|
| 6 |
# -----------------------------
|
| 7 |
# Helper: Fetch & clean webpage
|
|
@@ -82,9 +82,11 @@ Use clear, non-technical business language.
|
|
| 82 |
Website content:
|
| 83 |
{website_text}
|
| 84 |
"""
|
| 85 |
-
|
| 86 |
-
|
| 87 |
-
|
|
|
|
|
|
|
| 88 |
|
| 89 |
return response.text
|
| 90 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import requests
|
| 3 |
from bs4 import BeautifulSoup
|
| 4 |
+
from google import genai
|
| 5 |
|
| 6 |
# -----------------------------
|
| 7 |
# Helper: Fetch & clean webpage
|
|
|
|
| 82 |
Website content:
|
| 83 |
{website_text}
|
| 84 |
"""
|
| 85 |
+
|
| 86 |
+
response = client.models.generate_content(
|
| 87 |
+
model="gemini-1.5-flash",
|
| 88 |
+
contents=prompt
|
| 89 |
+
)
|
| 90 |
|
| 91 |
return response.text
|
| 92 |
|