Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -13,7 +13,7 @@ IMAGE_WIDTH = 512
|
|
| 13 |
IMAGE_WIDTH = 512
|
| 14 |
|
| 15 |
system_instruction_analysis = "You are an expert of the given topic. Analyze the provided text with a focus on the topic, identifying recent issues, recent insights, or improvements relevant to academic standards and effectiveness. Offer actionable advice for enhancing knowledge and suggest real-life examples."
|
| 16 |
-
model_name = "
|
| 17 |
model = genai.GenerativeModel(model_name, system_instruction=system_instruction_analysis)
|
| 18 |
#genai.configure(api_key=google_key)
|
| 19 |
|
|
@@ -160,7 +160,7 @@ bot_inputs = [
|
|
| 160 |
|
| 161 |
|
| 162 |
with gr.Blocks(theme="earneleh/paris") as demo:
|
| 163 |
-
gr.Markdown("<h1 style='font-size: 36px; font-weight: bold; font-family: Arial;'>Gemini
|
| 164 |
with gr.Row():
|
| 165 |
google_key_component.render()
|
| 166 |
with gr.Row():
|
|
|
|
| 13 |
IMAGE_WIDTH = 512
|
| 14 |
|
| 15 |
system_instruction_analysis = "You are an expert of the given topic. Analyze the provided text with a focus on the topic, identifying recent issues, recent insights, or improvements relevant to academic standards and effectiveness. Offer actionable advice for enhancing knowledge and suggest real-life examples."
|
| 16 |
+
model_name = "gemini-2.0-flash-exp"
|
| 17 |
model = genai.GenerativeModel(model_name, system_instruction=system_instruction_analysis)
|
| 18 |
#genai.configure(api_key=google_key)
|
| 19 |
|
|
|
|
| 160 |
|
| 161 |
|
| 162 |
with gr.Blocks(theme="earneleh/paris") as demo:
|
| 163 |
+
gr.Markdown("<h1 style='font-size: 36px; font-weight: bold; font-family: Arial;'>Gemini Multimodal Chatbot</h1>")
|
| 164 |
with gr.Row():
|
| 165 |
google_key_component.render()
|
| 166 |
with gr.Row():
|