Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -18,7 +18,7 @@ else:
|
|
18 |
# Initialize Gemini model
|
19 |
model = None
|
20 |
try:
|
21 |
-
model = genai.GenerativeModel('learnlm-2.0-flash-experimental') # Changed to
|
22 |
except Exception as e:
|
23 |
print(f"Error initializing Gemini model: {e}")
|
24 |
|
@@ -69,10 +69,7 @@ iface = gr.ChatInterface(
|
|
69 |
"What are the features of Amethyst Cafe?",
|
70 |
"Recommend a romantic dinner spot in Chennai",
|
71 |
"What is the cost for two at Barbeque Nation?"
|
72 |
-
]
|
73 |
-
retry_btn=None, # Optional: Remove retry button for simplicity
|
74 |
-
undo_btn=None, # Optional: Remove undo button for simplicity
|
75 |
-
clear_btn="Clear" # Button to clear chat history
|
76 |
)
|
77 |
|
78 |
# Launch the app
|
|
|
18 |
# Initialize Gemini model
|
19 |
model = None
|
20 |
try:
|
21 |
+
model = genai.GenerativeModel('learnlm-2.0-flash-experimental') # Changed to requested model
|
22 |
except Exception as e:
|
23 |
print(f"Error initializing Gemini model: {e}")
|
24 |
|
|
|
69 |
"What are the features of Amethyst Cafe?",
|
70 |
"Recommend a romantic dinner spot in Chennai",
|
71 |
"What is the cost for two at Barbeque Nation?"
|
72 |
+
]
|
|
|
|
|
|
|
73 |
)
|
74 |
|
75 |
# Launch the app
|