ehristoforu commited on
Commit
e2bbf72
·
verified ·
1 Parent(s): d96835e

Update page3.py

Browse files
Files changed (1) hide show
  1. page3.py +20 -9
page3.py CHANGED
@@ -1,15 +1,26 @@
1
  import streamlit as st
 
 
 
2
 
3
- from langchain_google_genai import ChatGoogleGenerativeAI
 
 
4
 
 
 
5
  import time
 
6
  import os
7
 
8
- def details():
9
- api = os.environ.get("api_key")
10
- apiKey = api
11
- llm = ChatGoogleGenerativeAI(model="gemini-pro", google_api_key=apiKey)
12
- st.header("Introducing Gemini")
13
- with st.chat_message("assistant"):
14
- for chunk in llm.stream("Tell me about google gemini ai model"):
15
- st.write(chunk.content)
 
 
 
 
1
  import streamlit as st
2
+ import requests
3
+ import io
4
+ from PIL import Image
5
 
6
+ # Заголовок и описание
7
+ st.title("Stable Diffusion Demo")
8
+ st.write("This is a demo of the Stable Diffusion model.")
9
 
10
+ # Функция для запроса к API модели
11
+ import streamlit as st
12
  import time
13
+ import random
14
  import os
15
 
16
+ def text():
17
+ st.title("Home of ForgeStudio")
18
+ st.markdown("""
19
+ ## About
20
+ This is modern webui for new AI types.
21
+
22
+ ## How to use
23
+ In the navigate menu there is options of AI types.
24
+
25
+ ### Build by [@ehristoforu](https://github.com/ehristoforu)
26
+ """)