Spaces:
Sleeping
Sleeping
Update app.py
Browse filesimplementación de asistencia de gemini cli
app.py
CHANGED
|
@@ -1,4 +1,13 @@
|
|
| 1 |
import streamlit as st
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
st.set_page_config(page_title="Multi-Tool AI Lab", layout="wide")
|
| 4 |
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
import streamlit as st
|
| 3 |
+
from gemini_assistant import ask_gemini
|
| 4 |
+
|
| 5 |
+
with st.expander("💎 Asistente Gemini (ayuda en código y desarrollo)"):
|
| 6 |
+
user_question = st.text_input("Preguntale a Gemini sobre código, bugs, mejoras...", placeholder="Explica cómo agregar LoRA a diffusers")
|
| 7 |
+
if st.button("Consultar Gemini"):
|
| 8 |
+
with st.spinner("Gemini pensando..."):
|
| 9 |
+
answer = ask_gemini(f"Eres un experto en Python, diffusers, Gradio y Streamlit. Responde en español: {user_question}")
|
| 10 |
+
st.markdown(answer)
|
| 11 |
|
| 12 |
st.set_page_config(page_title="Multi-Tool AI Lab", layout="wide")
|
| 13 |
|