Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -9,6 +9,8 @@ import time # Import time module for potential debugging/delay
|
|
| 9 |
GEMINI_API_KEY = os.getenv("GEMINI_API_KEY")
|
| 10 |
genai.configure(api_key=GEMINI_API_KEY)
|
| 11 |
|
|
|
|
|
|
|
| 12 |
# we will be using the Gemini 2.0 Flash model with Thinking capabilities
|
| 13 |
model = genai.GenerativeModel("gemini-2.0-flash-thinking-exp-01-21")
|
| 14 |
|
|
@@ -134,7 +136,7 @@ def user_message(msg: str, history: list) -> tuple[str, list]:
|
|
| 134 |
|
| 135 |
# Create the Gradio interface
|
| 136 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue="teal", secondary_hue="slate", neutral_hue="neutral")) as demo: # Using Soft theme with adjusted hues for a refined look
|
| 137 |
-
gr.Markdown("# Chat with
|
| 138 |
|
| 139 |
|
| 140 |
gr.HTML("""<a href="https://visitorbadge.io/status?path=https%3A%2F%2Faiqcamp-Gemini2-Flash-Thinking.hf.space">
|
|
|
|
| 9 |
GEMINI_API_KEY = os.getenv("GEMINI_API_KEY")
|
| 10 |
genai.configure(api_key=GEMINI_API_KEY)
|
| 11 |
|
| 12 |
+
used_model = "gemini-2.0-flash-thinking-exp-01-21"
|
| 13 |
+
|
| 14 |
# we will be using the Gemini 2.0 Flash model with Thinking capabilities
|
| 15 |
model = genai.GenerativeModel("gemini-2.0-flash-thinking-exp-01-21")
|
| 16 |
|
|
|
|
| 136 |
|
| 137 |
# Create the Gradio interface
|
| 138 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue="teal", secondary_hue="slate", neutral_hue="neutral")) as demo: # Using Soft theme with adjusted hues for a refined look
|
| 139 |
+
gr.Markdown("# Chat with " + used_model)
|
| 140 |
|
| 141 |
|
| 142 |
gr.HTML("""<a href="https://visitorbadge.io/status?path=https%3A%2F%2Faiqcamp-Gemini2-Flash-Thinking.hf.space">
|