Kushwanth Chowday Kandala commited on
Commit
3b76496
·
1 Parent(s): c68709e

update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -6,9 +6,9 @@ from IPython.display import Markdown
6
  gemini_api_key = os.getenv("GEMINI_API_KEY")
7
 
8
 
9
- def to_markdown(text):
10
- text = text.replace('•', ' *')
11
- return Markdown(textwrap.indent(text, '> ', predicate=lambda _: True)
12
 
13
  import google.generativeai as genai
14
 
@@ -17,7 +17,7 @@ genai.configure(api_key = gemini_api_key)
17
  model = genai.GenerativeModel('gemini-pro')
18
  response = model.generate_content("What is the meaning of life?")
19
 
20
- to_markdown(response.text)
21
 
22
  # Define a function that will be called when the user clicks the button
23
  def greet_user():
 
6
  gemini_api_key = os.getenv("GEMINI_API_KEY")
7
 
8
 
9
+ # def to_markdown(text):
10
+ # text = text.replace('•', ' *')
11
+ # return Markdown(textwrap.indent(text, '> ', predicate=lambda _: True)
12
 
13
  import google.generativeai as genai
14
 
 
17
  model = genai.GenerativeModel('gemini-pro')
18
  response = model.generate_content("What is the meaning of life?")
19
 
20
+ st.text(response.text)
21
 
22
  # Define a function that will be called when the user clicks the button
23
  def greet_user():