Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,6 @@ import streamlit as st
|
|
| 2 |
import google.generativeai as genai
|
| 3 |
import json
|
| 4 |
import re
|
| 5 |
-
import random
|
| 6 |
|
| 7 |
# Configurações de chave secreta e API do Google Gemini
|
| 8 |
API_KEY = st.secrets["GOOGLE_API_KEY"]
|
|
@@ -88,7 +87,25 @@ def main():
|
|
| 88 |
with col1:
|
| 89 |
st.header("⚙️ Configurações")
|
| 90 |
powershell_version = st.selectbox("Versão do PowerShell", ["7", "5.1"], index=0)
|
| 91 |
-
sistema_operacional = st.selectbox(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 92 |
|
| 93 |
nivel_detalhe = st.selectbox("Nível de Detalhe", ["Mais detalhado", "Padrão", "Mais conciso"], index=1)
|
| 94 |
tipo_script = st.selectbox("Tipo de Script", ["Mais automático", "Mais interativo"], index=0)
|
|
|
|
| 2 |
import google.generativeai as genai
|
| 3 |
import json
|
| 4 |
import re
|
|
|
|
| 5 |
|
| 6 |
# Configurações de chave secreta e API do Google Gemini
|
| 7 |
API_KEY = st.secrets["GOOGLE_API_KEY"]
|
|
|
|
| 87 |
with col1:
|
| 88 |
st.header("⚙️ Configurações")
|
| 89 |
powershell_version = st.selectbox("Versão do PowerShell", ["7", "5.1"], index=0)
|
| 90 |
+
sistema_operacional = st.selectbox(
|
| 91 |
+
"Sistema Operacional",
|
| 92 |
+
[
|
| 93 |
+
"Windows Server 2022",
|
| 94 |
+
"Windows Server 2019",
|
| 95 |
+
"Windows Server 2016",
|
| 96 |
+
"Windows Server 2012 R2",
|
| 97 |
+
"Windows Server 2012",
|
| 98 |
+
"Windows Server 2008 R2",
|
| 99 |
+
"Windows Server 2008",
|
| 100 |
+
"Windows 11",
|
| 101 |
+
"Windows 10",
|
| 102 |
+
"Windows 8.1",
|
| 103 |
+
"Windows 8",
|
| 104 |
+
"Windows 7",
|
| 105 |
+
"Outro"
|
| 106 |
+
],
|
| 107 |
+
index=2, # Define Windows Server 2016 como padrão
|
| 108 |
+
)
|
| 109 |
|
| 110 |
nivel_detalhe = st.selectbox("Nível de Detalhe", ["Mais detalhado", "Padrão", "Mais conciso"], index=1)
|
| 111 |
tipo_script = st.selectbox("Tipo de Script", ["Mais automático", "Mais interativo"], index=0)
|