Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -150,11 +150,11 @@ def index():
|
|
| 150 |
|
| 151 |
logging.debug("Calling Gemini API for content generation.")
|
| 152 |
response = genai.generate_text(
|
| 153 |
-
model="gemini-2.0-flash",
|
| 154 |
prompt=prompt
|
| 155 |
)
|
| 156 |
|
| 157 |
-
# Access the generated content (adjust attribute as needed
|
| 158 |
analysis_text = response.result
|
| 159 |
analysis_html = markdown.markdown(analysis_text) # convert markdown to HTML
|
| 160 |
|
|
|
|
| 150 |
|
| 151 |
logging.debug("Calling Gemini API for content generation.")
|
| 152 |
response = genai.generate_text(
|
| 153 |
+
model="models/gemini-2.0-flash",
|
| 154 |
prompt=prompt
|
| 155 |
)
|
| 156 |
|
| 157 |
+
# Access the generated content (adjust attribute as needed)
|
| 158 |
analysis_text = response.result
|
| 159 |
analysis_html = markdown.markdown(analysis_text) # convert markdown to HTML
|
| 160 |
|