kavansaun commited on
Commit
de3e6e9
·
verified ·
1 Parent(s): fdd025b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -1,14 +1,15 @@
 
1
  import gradio as gr
2
  import openai
3
  import os
4
  from github import Github
5
  import uuid
6
 
 
7
  openai.api_key = os.getenv('OPENAI_KEY')
8
 
9
- # Create UI using gradio
10
  with gr.Blocks(theme=gr.themes.Monochrome(),css="footer{display:none !important}") as chatblock:
11
- message_history = []
12
  user_id = gr.Markdown(visible=False)
13
 
14
  @chatblock.load(outputs=[user_id])
 
1
+ #Importing initial stuff
2
  import gradio as gr
3
  import openai
4
  import os
5
  from github import Github
6
  import uuid
7
 
8
+ #Initializing secrets
9
  openai.api_key = os.getenv('OPENAI_KEY')
10
 
11
+ # Creating UI using gradio Blocks. This line sets the block as a variable called "chatblock", the theme as monochrome, and removes the footer of the page.
12
  with gr.Blocks(theme=gr.themes.Monochrome(),css="footer{display:none !important}") as chatblock:
 
13
  user_id = gr.Markdown(visible=False)
14
 
15
  @chatblock.load(outputs=[user_id])